Loading modules/base/eca_base.module +4 −0 Original line number Diff line number Diff line <?php /** * @file */ use Drupal\eca_base\HookHandler; /** Loading modules/base/src/Event/CronEvent.php +8 −6 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ use Drupal\eca\EcaState; use Drupal\eca\Event\ConditionalApplianceInterface; /** * Class CronEvent * Class CronEvent. * * @package Drupal\eca_base\Event */ Loading @@ -25,11 +25,13 @@ class CronEvent extends Event implements ConditionalApplianceInterface { * @return string[] */ public static function fields(): array { return [[ return [ [ 'name' => 'frequency', 'label' => 'Frequency (UTC)', 'type' => 'String', ]]; ], ]; } /** Loading modules/base/src/Event/CustomEvent.php +9 −7 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ use Drupal\eca\Event\TokenReceiverInterface; use Drupal\eca\Event\TokenReceiverTrait; /** * Class CustomEvent * Class CustomEvent. * * @package Drupal\eca_base\Event */ Loading @@ -32,7 +32,7 @@ class CustomEvent extends Event implements ConditionalApplianceInterface, TokenR /** * Provides a custom event. * * @param string $event_id * The (optional) ID for this event, so that it only applies, if it matches * the given event ID in the arguments. Loading @@ -51,11 +51,13 @@ class CustomEvent extends Event implements ConditionalApplianceInterface, TokenR * @return string[] */ public static function fields(): array { return [[ return [ [ 'name' => 'event_id', 'label' => 'Event ID', 'type' => 'String', ]]; ], ]; } /** Loading modules/base/tests/src/Kernel/CompareScalarTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ class CompareScalarTest extends KernelTestBase { * * @dataProvider stringDataProvider * @dataProvider numericDataProvider * * @throws \Drupal\Component\Plugin\Exception\PluginException */ public function testScalarValues($left, $right, $operator, $type, $case, $negate, $message, $assertTrue = TRUE): void { Loading modules/content/eca_content.module +4 −0 Original line number Diff line number Diff line <?php /** * @file */ if (!class_exists('Drupal\Core\Field\FieldUpdateActionBase', FALSE)) { class_alias('Drupal\eca_content\Plugin\Action\FieldUpdateActionBase', 'Drupal\Core\Field\FieldUpdateActionBase'); } Loading Loading
modules/base/eca_base.module +4 −0 Original line number Diff line number Diff line <?php /** * @file */ use Drupal\eca_base\HookHandler; /** Loading
modules/base/src/Event/CronEvent.php +8 −6 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ use Drupal\eca\EcaState; use Drupal\eca\Event\ConditionalApplianceInterface; /** * Class CronEvent * Class CronEvent. * * @package Drupal\eca_base\Event */ Loading @@ -25,11 +25,13 @@ class CronEvent extends Event implements ConditionalApplianceInterface { * @return string[] */ public static function fields(): array { return [[ return [ [ 'name' => 'frequency', 'label' => 'Frequency (UTC)', 'type' => 'String', ]]; ], ]; } /** Loading
modules/base/src/Event/CustomEvent.php +9 −7 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ use Drupal\eca\Event\TokenReceiverInterface; use Drupal\eca\Event\TokenReceiverTrait; /** * Class CustomEvent * Class CustomEvent. * * @package Drupal\eca_base\Event */ Loading @@ -32,7 +32,7 @@ class CustomEvent extends Event implements ConditionalApplianceInterface, TokenR /** * Provides a custom event. * * @param string $event_id * The (optional) ID for this event, so that it only applies, if it matches * the given event ID in the arguments. Loading @@ -51,11 +51,13 @@ class CustomEvent extends Event implements ConditionalApplianceInterface, TokenR * @return string[] */ public static function fields(): array { return [[ return [ [ 'name' => 'event_id', 'label' => 'Event ID', 'type' => 'String', ]]; ], ]; } /** Loading
modules/base/tests/src/Kernel/CompareScalarTest.php +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ class CompareScalarTest extends KernelTestBase { * * @dataProvider stringDataProvider * @dataProvider numericDataProvider * * @throws \Drupal\Component\Plugin\Exception\PluginException */ public function testScalarValues($left, $right, $operator, $type, $case, $negate, $message, $assertTrue = TRUE): void { Loading
modules/content/eca_content.module +4 −0 Original line number Diff line number Diff line <?php /** * @file */ if (!class_exists('Drupal\Core\Field\FieldUpdateActionBase', FALSE)) { class_alias('Drupal\eca_content\Plugin\Action\FieldUpdateActionBase', 'Drupal\Core\Field\FieldUpdateActionBase'); } Loading