You are here

public static function MediaThumbnailBase::create in Media Thumbnails 8

Injects some default services.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container.

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Return value

\Drupal\media_thumbnails\Plugin\MediaThumbnailBase The instance.

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/MediaThumbnailBase.php, line 79

Class

MediaThumbnailBase
Base class for Media thumbnail plugins.

Namespace

Drupal\media_thumbnails\Plugin

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) : MediaThumbnailBase {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('config.factory'), $container
    ->get('file_system'), $container
    ->get('logger.media_thumbnails'));
}