MenuLinkContentDeriver
class MenuLinkContentDeriver extends DeriverBase implements ContainerDeriverInterface (View source)
Provides a deriver for user entered paths of menu links.
The assumption is that the number of manually entered menu links are lower compared to entity referenced ones.
Properties
| protected array | $derivatives | List of derivative definitions. |
from DeriverBase |
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager. |
|
| protected MenuLinkManagerInterface | $menuLinkManager | The menu link manager. |
Methods
array
getDerivativeDefinition(string $derivative_id, array|PluginDefinitionInterface $base_plugin_definition)
Gets the definition of a derivative plugin.
from
DeriverBase
array
getDerivativeDefinitions(array $base_plugin_definition)
Gets the definition of all derivatives of a base plugin.
__construct(EntityTypeManagerInterface $entity_type_manager, MenuLinkManagerInterface $menu_link_manager)
Constructs a MenuLinkContentDeriver instance.
static ContainerDeriverInterface
create(ContainerInterface $container, string $base_plugin_id)
Creates a new class instance.
Details
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.
__construct(EntityTypeManagerInterface $entity_type_manager, MenuLinkManagerInterface $menu_link_manager)
Constructs a MenuLinkContentDeriver instance.
static ContainerDeriverInterface
create(ContainerInterface $container, string $base_plugin_id)
Creates a new class instance.