public function MatchingUnitIndex::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/ MatchingUnitIndex.php, line 25 
- Contains \Drupal\bat_api\Plugin\Deriver\MatchingUnitIndex.php
Class
Namespace
Drupal\bat_api\Plugin\DeriverCode
public function getDerivativeDefinitions($base_plugin_definition) {
  $entity_type_id = 'calendar-matching-units';
  $this->derivatives[$entity_type_id] = $base_plugin_definition;
  $this->derivatives[$entity_type_id]['title'] = t('Calendar matching units');
  $this->derivatives[$entity_type_id]['description'] = t('Index of units objects.');
  $this->derivatives[$entity_type_id]['category'] = t('Calendar matching units');
  $this->derivatives[$entity_type_id]['path'] = "{$entity_type_id}";
  return $this->derivatives;
}