Skip to content
Snippets Groups Projects
Commit a7c22e7e authored by Marcus Johansson's avatar Marcus Johansson
Browse files

Issue #3446939 by Marcus_Johansson: Add base class for text to JSON field

parent bac48f63
No related branches found
No related tags found
No related merge requests found
Pipeline #172495 failed
......@@ -7,7 +7,7 @@ use Drupal\ai_interpolator\Exceptions\AiInterpolatorRuleNotFoundException;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Field\FieldDefinitionInterface;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
/**
* Run one rule.
......@@ -27,7 +27,7 @@ class AiInterpolatorRuleRunner {
/**
* The event dispatcher.
*/
protected EventDispatcher $eventDispatcher;
protected EventDispatcherInterface $eventDispatcher;
/**
* Constructs a new AiInterpolatorRuleRunner object.
......@@ -36,10 +36,10 @@ class AiInterpolatorRuleRunner {
* The entity type definition.
* @param \Drupal\ai_interpolator\AiFieldRules $fieldRules
* The field rule manager.
* @param \Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $eventDispatcher
* @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher
* The event dispatcher.
*/
public function __construct(EntityTypeManager $entityTypeManager, AiFieldRules $fieldRules, EventDispatcher $eventDispatcher) {
public function __construct(EntityTypeManager $entityTypeManager, AiFieldRules $fieldRules, EventDispatcherInterface $eventDispatcher) {
$this->entityType = $entityTypeManager;
$this->fieldRules = $fieldRules;
$this->eventDispatcher = $eventDispatcher;
......
......@@ -4,7 +4,6 @@ namespace Drupal\ai_interpolator\Event;
use Drupal\Component\EventDispatcher\Event;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Field\FieldConfigInterface;
/**
* Changes to the interpolator config can be made here.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment