class GroupEventDeriver in Event 8
Hierarchy
- class \Drupal\Component\Plugin\Derivative\DeriverBase implements DeriverInterface
- class \Drupal\gevent\Plugin\GroupContentEnabler\GroupEventDeriver
Expanded class hierarchy of GroupEventDeriver
File
- modules/
gevent/ src/ Plugin/ GroupContentEnabler/ GroupEventDeriver.php, line 8
Namespace
Drupal\gevent\Plugin\GroupContentEnablerView source
class GroupEventDeriver extends DeriverBase {
/**
* {@inheritdoc}.
*/
public function getDerivativeDefinitions($base_plugin_definition) {
foreach (EventType::loadMultiple() as $name => $event_type) {
$label = $event_type
->label();
$this->derivatives[$name] = [
'entity_bundle' => $name,
'label' => t('Group event (@type)', [
'@type' => $label,
]),
'description' => t('Adds %type content to groups both publicly and privately.', [
'%type' => $label,
]),
] + $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:: |
|
GroupEventDeriver:: |
public | function |
. Overrides DeriverBase:: |