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

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

parent 0ce16e5b
No related branches found
No related tags found
No related merge requests found
Pipeline #171897 failed
......@@ -4,10 +4,10 @@ namespace Drupal\ai_interpolator;
use Drupal\ai_interpolator\Event\ValuesChangeEvent;
use Drupal\ai_interpolator\Exceptions\AiInterpolatorRuleNotFoundException;
use Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Field\FieldDefinitionInterface;
use Symfony\Component\EventDispatcher\EventDispatcher;
/**
* Run one rule.
......@@ -27,7 +27,7 @@ class AiInterpolatorRuleRunner {
/**
* The event dispatcher.
*/
protected ContainerAwareEventDispatcher $eventDispatcher;
protected EventDispatcher $eventDispatcher;
/**
* Constructs a new AiInterpolatorRuleRunner object.
......@@ -39,7 +39,7 @@ class AiInterpolatorRuleRunner {
* @param \Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $eventDispatcher
* The event dispatcher.
*/
public function __construct(EntityTypeManager $entityTypeManager, AiFieldRules $fieldRules, ContainerAwareEventDispatcher $eventDispatcher) {
public function __construct(EntityTypeManager $entityTypeManager, AiFieldRules $fieldRules, EventDispatcher $eventDispatcher) {
$this->entityType = $entityTypeManager;
$this->fieldRules = $fieldRules;
$this->eventDispatcher = $eventDispatcher;
......
......@@ -63,4 +63,5 @@ class TextToJsonField extends SimpleTextChat {
}
return TRUE;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment