public static function PluginTypeInterface::createFromDefinition in Plugin 8.2
Creates a plugin type based on a definition.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container:
mixed[] $definition:
Return value
static
1 method overrides PluginTypeInterface::createFromDefinition()
- PluginType::createFromDefinition in src/
PluginType/ PluginType.php - Creates a plugin type based on a definition.
File
- src/
PluginType/ PluginTypeInterface.php, line 20
Class
- PluginTypeInterface
- Defines a plugin type.
Namespace
Drupal\plugin\PluginTypeCode
public static function createFromDefinition(ContainerInterface $container, array $definition);