You are here

interface MicrositeMenuLinkDiscoveryInterface in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 modules/entity_hierarchy_microsite/src/MicrositeMenuLinkDiscoveryInterface.php \Drupal\entity_hierarchy_microsite\MicrositeMenuLinkDiscoveryInterface

Defines a class for microsite menu link discovery.

Hierarchy

Expanded class hierarchy of MicrositeMenuLinkDiscoveryInterface

All classes that implement MicrositeMenuLinkDiscoveryInterface

1 file declares its use of MicrositeMenuLinkDiscoveryInterface
MicrositeMenuItemDeriver.php in modules/entity_hierarchy_microsite/src/Plugin/Deriver/MicrositeMenuItemDeriver.php

File

modules/entity_hierarchy_microsite/src/MicrositeMenuLinkDiscoveryInterface.php, line 10

Namespace

Drupal\entity_hierarchy_microsite
View source
interface MicrositeMenuLinkDiscoveryInterface {

  /**
   * Gets menu link definitions for the given site or all sites if none given.
   *
   * @param \Drupal\entity_hierarchy_microsite\Entity\MicrositeInterface|null $microsite
   *   Microsite.
   *
   * @return array
   *   Menu link plugin definitions.
   */
  public function getMenuLinkDefinitions(MicrositeInterface $microsite = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
MicrositeMenuLinkDiscoveryInterface::getMenuLinkDefinitions public function Gets menu link definitions for the given site or all sites if none given. 1