You are here

public function CalendarEventsIndex::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/CalendarEventsIndex.php, line 25
Contains \Drupal\bat_api\Plugin\Deriver\CalendarEventsIndex.php

Class

CalendarEventsIndex

Namespace

Drupal\bat_api\Plugin\Deriver

Code

public function getDerivativeDefinitions($base_plugin_definition) {
  $entity_type_id = 'calendar-events';
  $this->derivatives[$entity_type_id] = $base_plugin_definition;
  $this->derivatives[$entity_type_id]['title'] = t('Calendar events');
  $this->derivatives[$entity_type_id]['description'] = t('Index of events objects.');
  $this->derivatives[$entity_type_id]['category'] = t('Calendar events');
  $this->derivatives[$entity_type_id]['path'] = "{$entity_type_id}";
  return $this->derivatives;
}