public static function ContainerFactoryPluginInterface::create in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php \Drupal\Core\Plugin\ContainerFactoryPluginInterface::create()
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.
2 methods override ContainerFactoryPluginInterface::create()
- Plugin3A::create in modules/
providers/ service_container_annotation_discovery/ tests/ modules/ service_container_annotation_discovery_test/ src/ Plugin/ Plugin3/ Plugin3A/ Plugin3A.php - @inheritdoc
- Plugin7A::create in modules/
providers/ service_container_annotation_discovery/ tests/ modules/ service_container_annotation_discovery_subtest/ src/ Plugin/ Plugin7/ Plugin7A/ Plugin7A.php - @inheritdoc
File
- lib/
Drupal/ Core/ Plugin/ ContainerFactoryPluginInterface.php, line 32 - Contains \Drupal\Core\Plugin\ContainerFactoryPluginInterface.
Class
- ContainerFactoryPluginInterface
- Defines an interface for pulling plugin dependencies from the container.
Namespace
Drupal\Core\PluginCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition);