public function EventsIndex::getDerivativeDefinitions in Booking and Availability Management API 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/ Deriver/ EventsIndex.php, line 25 - Contains \Drupal\bat_api\Plugin\Deriver\EventsIndex.php
Class
Namespace
Drupal\bat_api\Plugin\DeriverCode
public function getDerivativeDefinitions($base_plugin_definition) {
$entity_type_id = 'events';
$this->derivatives[$entity_type_id] = $base_plugin_definition;
$this->derivatives[$entity_type_id]['title'] = t('Events');
$this->derivatives[$entity_type_id]['description'] = t('Index of events objects.');
$this->derivatives[$entity_type_id]['category'] = t('Events');
$this->derivatives[$entity_type_id]['path'] = "{$entity_type_id}";
return $this->derivatives;
}