class ConfigurableEventHandlerEntityBundle
Exposes the bundle of an entity as event setting.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\rules\Core\RulesDefaultEventHandler extends \Drupal\Core\Plugin\PluginBase implements \Drupal\rules\Core\RulesEventHandlerInterface
- class \Drupal\rules\EventHandler\ConfigurableEventHandlerBase extends \Drupal\rules\Core\RulesDefaultEventHandler implements \Drupal\rules\Core\RulesConfigurableEventHandlerInterface
- class \Drupal\rules\EventHandler\ConfigurableEventHandlerEntityBundle extends \Drupal\rules\EventHandler\ConfigurableEventHandlerBase
- class \Drupal\rules\EventHandler\ConfigurableEventHandlerBase extends \Drupal\rules\Core\RulesDefaultEventHandler implements \Drupal\rules\Core\RulesConfigurableEventHandlerInterface
- class \Drupal\rules\Core\RulesDefaultEventHandler extends \Drupal\Core\Plugin\PluginBase implements \Drupal\rules\Core\RulesEventHandlerInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of ConfigurableEventHandlerEntityBundle
1 string reference to 'ConfigurableEventHandlerEntityBundle'
File
-
src/
EventHandler/ ConfigurableEventHandlerEntityBundle.php, line 11
Namespace
Drupal\rules\EventHandlerView source
class ConfigurableEventHandlerEntityBundle extends ConfigurableEventHandlerBase {
/**
* {@inheritdoc}
*/
public static function determineQualifiedEvents(object $event, $event_name, array &$event_definition) {
// @todo The 'object' type hint should be replaced with the appropriate
// class once Symfony 4 is no longer supported.
$events_suffixes = [];
if ($event instanceof EntityEvent) {
$events_suffixes[] = $event->getSubject()
->bundle();
}
return $events_suffixes;
}
/**
* {@inheritdoc}
*/
public function summary() {
// Nothing to do by default.
}
/**
* {@inheritdoc}
*/
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
// Nothing to do by default.
}
/**
* {@inheritdoc}
*/
public function validate() {
// Nothing to check by default.
}
/**
* {@inheritdoc}
*/
public function getEventNameSuffix() {
// Nothing to do by default.
}
/**
* {@inheritdoc}
*/
public function refineContextDefinitions() {
// Nothing to refine by default.
}
}