You are here

class GroupMenuDeriver in Group Menu 8

Provides a menu deriver.

Hierarchy

Expanded class hierarchy of GroupMenuDeriver

File

src/Plugin/GroupContentEnabler/GroupMenuDeriver.php, line 10

Namespace

Drupal\groupmenu\Plugin\GroupContentEnabler
View source
class GroupMenuDeriver extends DeriverBase {

  /**
   * {@inheritdoc}
   */
  public function getDerivativeDefinitions($base_plugin_definition) {
    $this->derivatives['menu'] = [
      'label' => t('Group menu'),
      'description' => t("Adds menus to groups"),
    ] + $base_plugin_definition;
    return $this->derivatives;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DeriverBase::$derivatives protected property List of derivative definitions. 1
DeriverBase::getDerivativeDefinition public function Gets the definition of a derivative plugin. Overrides DeriverInterface::getDerivativeDefinition
GroupMenuDeriver::getDerivativeDefinitions public function Gets the definition of all derivatives of a base plugin. Overrides DeriverBase::getDerivativeDefinitions