Loading cached_computed_field.info.yml +1 −1 Original line number Diff line number Diff line name: Cached Computed Field type: module description: A field that allows to cache computationally expensive computed data in field storage. core_version_requirement: ^8.9 || ^9.1 core_version_requirement: ^8.9 || ^9.1 || ^10 package: Fields src/CachedComputedFieldManager.php +1 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ class CachedComputedFieldManager implements CachedComputedFieldManagerInterface $end = time() + $this->getTimeLimit(); while ((time() < $end) && $items = $this->claimItems()) { $event = new RefreshExpiredFieldsEvent($items); $this->eventDispatcher->dispatch(RefreshExpiredFieldsEventInterface::EVENT_NAME, $event); $this->eventDispatcher->dispatch($event, RefreshExpiredFieldsEventInterface::EVENT_NAME); } } Loading src/Event/RefreshExpiredFieldsEvent.php +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ namespace Drupal\cached_computed_field\Event; use Drupal\cached_computed_field\ExpiredItemCollectionInterface; use Symfony\Component\EventDispatcher\Event; use Symfony\Contracts\EventDispatcher\Event; /** * An event that fires when cached computed fields expire. Loading tests/src/Kernel/KernelTestBase.php +2 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ abstract class KernelTestBase extends DrupalKernelTestBase { /** * {@inheritdoc} */ public static $modules = [ protected static $modules = [ 'cached_computed_field', 'cached_computed_field_test', 'entity_test', Loading Loading @@ -57,7 +57,7 @@ abstract class KernelTestBase extends DrupalKernelTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); $this->installConfig([ Loading tests/src/Kernel/RefreshExpiredFieldsSubscriberBaseTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ class RefreshExpiredFieldsSubscriberBaseTest extends KernelTestBase { /** * {@inheritdoc} */ public function setUp() { public function setUp(): void { parent::setUp(); // Instantiate the event subscriber being tested with a mocked time service Loading Loading
cached_computed_field.info.yml +1 −1 Original line number Diff line number Diff line name: Cached Computed Field type: module description: A field that allows to cache computationally expensive computed data in field storage. core_version_requirement: ^8.9 || ^9.1 core_version_requirement: ^8.9 || ^9.1 || ^10 package: Fields
src/CachedComputedFieldManager.php +1 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ class CachedComputedFieldManager implements CachedComputedFieldManagerInterface $end = time() + $this->getTimeLimit(); while ((time() < $end) && $items = $this->claimItems()) { $event = new RefreshExpiredFieldsEvent($items); $this->eventDispatcher->dispatch(RefreshExpiredFieldsEventInterface::EVENT_NAME, $event); $this->eventDispatcher->dispatch($event, RefreshExpiredFieldsEventInterface::EVENT_NAME); } } Loading
src/Event/RefreshExpiredFieldsEvent.php +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ namespace Drupal\cached_computed_field\Event; use Drupal\cached_computed_field\ExpiredItemCollectionInterface; use Symfony\Component\EventDispatcher\Event; use Symfony\Contracts\EventDispatcher\Event; /** * An event that fires when cached computed fields expire. Loading
tests/src/Kernel/KernelTestBase.php +2 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ abstract class KernelTestBase extends DrupalKernelTestBase { /** * {@inheritdoc} */ public static $modules = [ protected static $modules = [ 'cached_computed_field', 'cached_computed_field_test', 'entity_test', Loading Loading @@ -57,7 +57,7 @@ abstract class KernelTestBase extends DrupalKernelTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); $this->installConfig([ Loading
tests/src/Kernel/RefreshExpiredFieldsSubscriberBaseTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ class RefreshExpiredFieldsSubscriberBaseTest extends KernelTestBase { /** * {@inheritdoc} */ public function setUp() { public function setUp(): void { parent::setUp(); // Instantiate the event subscriber being tested with a mocked time service Loading