Drupal 8  8.0.2
MenuLinkContentDeriver Class Reference
Inheritance diagram for MenuLinkContentDeriver:

Public Member Functions

 __construct (QueryFactory $query_factory, EntityManagerInterface $entity_manager, MenuLinkManagerInterface $menu_link_manager)
- Public Member Functions inherited from DeriverBase
 getDerivativeDefinition ($derivative_id, $base_plugin_definition)
 getDerivativeDefinitions ($base_plugin_definition)

Static Public Member Functions

static create (ContainerInterface $container, $base_plugin_id)

Protected Attributes

- Protected Attributes inherited from DeriverBase
 $derivatives = array()

Detailed Description

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.

Constructor & Destructor Documentation

__construct ( QueryFactory  $query_factory,
EntityManagerInterface  $entity_manager,
MenuLinkManagerInterface  $menu_link_manager 

Constructs a MenuLinkContentDeriver instance.

\Drupal\Core\Entity\Query\QueryFactory$query_factoryThe query factory.
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager.
\Drupal\Core\Menu\MenuLinkManagerInterface$menu_link_managerThe menu link manager.

References Drupal\entityManager().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container,

{Creates a new class instance.

\Symfony\Component\DependencyInjection\ContainerInterface$containerThe container to pull out services used in the fetcher.
string$base_plugin_idThe base plugin ID for the plugin ID.
static Returns an instance of this fetcher.

Implements ContainerDeriverInterface.

The documentation for this class was generated from the following file: