class GroupMenuDeriver in Group Menu 8
Provides a menu deriver.
Hierarchy
- class \Drupal\Component\Plugin\Derivative\DeriverBase implements DeriverInterface
- class \Drupal\groupmenu\Plugin\GroupContentEnabler\GroupMenuDeriver
Expanded class hierarchy of GroupMenuDeriver
File
- src/
Plugin/ GroupContentEnabler/ GroupMenuDeriver.php, line 10
Namespace
Drupal\groupmenu\Plugin\GroupContentEnablerView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeriverBase:: |
protected | property | List of derivative definitions. | 1 |
DeriverBase:: |
public | function |
Gets the definition of a derivative plugin. Overrides DeriverInterface:: |
|
GroupMenuDeriver:: |
public | function |
Gets the definition of all derivatives of a base plugin. Overrides DeriverBase:: |