public static function ContainerFactoryPluginInterface::create in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php \Drupal\Core\Plugin\ContainerFactoryPluginInterface::create()
- 9 core/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.
60 methods override ContainerFactoryPluginInterface::create()
- AjaxFormBlock::create in core/
modules/ system/ tests/ modules/ ajax_forms_test/ src/ Plugin/ Block/ AjaxFormBlock.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.
- BlockPluginId::create in core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockPluginId.php - Creates an instance of the plugin.
- BlockRegion::create in core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockRegion.php - Creates an instance of the plugin.
- BlockTheme::create in core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockTheme.php - Creates an instance of the plugin.
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\PluginCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition);