ConfigurableEventHandlerEntityBundle.php in Rules 8.3
File
src/EventHandler/ConfigurableEventHandlerEntityBundle.php
View source
<?php
namespace Drupal\rules\EventHandler;
use Drupal\rules\Event\EntityEvent;
use Drupal\Core\Form\FormStateInterface;
use Symfony\Component\EventDispatcher\Event;
class ConfigurableEventHandlerEntityBundle extends ConfigurableEventHandlerBase {
public static function determineQualifiedEvents(Event $event, $event_name, array &$event_definition) {
$events_suffixes = [];
if ($event instanceof EntityEvent) {
$events_suffixes[] = $event
->getSubject()
->bundle();
}
return $events_suffixes;
}
public function summary() {
}
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
}
public function validate() {
}
public function getEventNameSuffix() {
}
public function refineContextDefinitions() {
}
}