8.5.x ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface::create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
8.0.x ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface::create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
8.1.x ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface::create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
8.2.x ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface::create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
8.3.x ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface::create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
8.4.x ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface::create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
8.6.x ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface::create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)

Creates an instance of the plugin.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the plugin.

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

static Returns an instance of this plugin.

104 methods override ContainerFactoryPluginInterface::create()
AggregatorFeedBlock::create in core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
Creates an instance of the plugin.
AjaxFormBlock::create in core/modules/system/tests/modules/ajax_forms_test/src/Plugin/Block/AjaxFormBlock.php
Creates an instance of the plugin.
AssignOwnerNode::create in core/modules/node/src/Plugin/Action/AssignOwnerNode.php
Creates an instance of the plugin.
BlockContentBlock::create in core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
Creates an instance of the plugin.
BlockedIP::create in core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php
Creates an instance of the plugin.

... See full list

File

core/lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php, line 27

Class

ContainerFactoryPluginInterface
Defines an interface for pulling plugin dependencies from the container.

Namespace

Drupal\Core\Plugin

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition);