You are here

public function GroupMenuDeriver::getDerivativeDefinitions in Group Menu 8

Gets the definition of all derivatives of a base plugin.

Parameters

array $base_plugin_definition: The definition array of the base plugin.

Return value

array An array of full derivative definitions keyed on derivative id.

Overrides DeriverBase::getDerivativeDefinitions

See also

getDerivativeDefinition()

File

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

Class

GroupMenuDeriver
Provides a menu deriver.

Namespace

Drupal\groupmenu\Plugin\GroupContentEnabler

Code

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;
}