EntityDeriver
class EntityDeriver implements ContainerDeriverInterface (View source)
Provides a resource plugin definition for every entity type.
Properties
| protected array | $derivatives | List of derivative definitions. |
|
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager. |
Methods
static ContainerDeriverInterface
create(ContainerInterface $container, string $base_plugin_id)
Creates a new class instance.
array
getDerivativeDefinition(string $derivative_id, array|PluginDefinitionInterface $base_plugin_definition)
Gets the definition of a derivative plugin.
array
getDerivativeDefinitions(array $base_plugin_definition)
Gets the definition of all derivatives of a base plugin.
Details
__construct(EntityTypeManagerInterface $entity_type_manager)
Constructs an EntityDeriver object.
static ContainerDeriverInterface
create(ContainerInterface $container, string $base_plugin_id)
Creates a new class instance.
array
getDerivativeDefinition(string $derivative_id, array|PluginDefinitionInterface $base_plugin_definition)
Gets the definition of a derivative plugin.
array
getDerivativeDefinitions(array $base_plugin_definition)
Gets the definition of all derivatives of a base plugin.