class CalendarEventsIndex in Booking and Availability Management API 8
Same name in this branch
- 8 src/Plugin/Deriver/CalendarEventsIndex.php \Drupal\bat_api\Plugin\Deriver\CalendarEventsIndex
- 8 src/Plugin/ServiceDefinition/CalendarEventsIndex.php \Drupal\bat_api\Plugin\ServiceDefinition\CalendarEventsIndex
Hierarchy
- class \Drupal\Component\Plugin\Derivative\DeriverBase implements DeriverInterface
- class \Drupal\bat_api\Plugin\Deriver\CalendarEventsIndex implements ContainerDeriverInterface
Expanded class hierarchy of CalendarEventsIndex
File
- src/
Plugin/ Deriver/ CalendarEventsIndex.php, line 13 - Contains \Drupal\bat_api\Plugin\Deriver\CalendarEventsIndex.php
Namespace
Drupal\bat_api\Plugin\DeriverView source
class CalendarEventsIndex extends DeriverBase implements ContainerDeriverInterface {
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('router.route_provider'), $container
->get('entity_type.manager'));
}
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CalendarEventsIndex:: |
public static | function |
Creates a new class instance. Overrides ContainerDeriverInterface:: |
|
CalendarEventsIndex:: |
public | function |
Gets the definition of all derivatives of a base plugin. Overrides DeriverBase:: |
|
DeriverBase:: |
protected | property | List of derivative definitions. | 1 |
DeriverBase:: |
public | function |
Gets the definition of a derivative plugin. Overrides DeriverInterface:: |