Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ai_interpolator
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
ai_interpolator
Commits
a7c22e7e
Commit
a7c22e7e
authored
1 year ago
by
Marcus Johansson
Browse files
Options
Downloads
Patches
Plain Diff
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
1 year ago
Stage: build
Stage: validate
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/AiInterpolatorRuleRunner.php
+4
-4
4 additions, 4 deletions
src/AiInterpolatorRuleRunner.php
src/Event/InterpolatorConfigEvent.php
+0
-1
0 additions, 1 deletion
src/Event/InterpolatorConfigEvent.php
with
4 additions
and
5 deletions
src/AiInterpolatorRuleRunner.php
+
4
−
4
View file @
a7c22e7e
...
...
@@ -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\EventDispatcher
Interface
;
/**
* Run one rule.
...
...
@@ -27,7 +27,7 @@ class AiInterpolatorRuleRunner {
/**
* The event dispatcher.
*/
protected
EventDispatcher
$eventDispatcher
;
protected
EventDispatcher
Interface
$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\
ContainerAware
EventDispatcher $eventDispatcher
* @param \
Symfony
\Component\EventDispatcher\EventDispatcher
Interface
$eventDispatcher
* The event dispatcher.
*/
public
function
__construct
(
EntityTypeManager
$entityTypeManager
,
AiFieldRules
$fieldRules
,
EventDispatcher
$eventDispatcher
)
{
public
function
__construct
(
EntityTypeManager
$entityTypeManager
,
AiFieldRules
$fieldRules
,
EventDispatcher
Interface
$eventDispatcher
)
{
$this
->
entityType
=
$entityTypeManager
;
$this
->
fieldRules
=
$fieldRules
;
$this
->
eventDispatcher
=
$eventDispatcher
;
...
...
This diff is collapsed.
Click to expand it.
src/Event/InterpolatorConfigEvent.php
+
0
−
1
View file @
a7c22e7e
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment