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
09d2dd29
Commit
09d2dd29
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
0ce16e5b
No related branches found
No related tags found
No related merge requests found
Pipeline
#171897
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
+3
-3
3 additions, 3 deletions
src/AiInterpolatorRuleRunner.php
src/PluginBaseClasses/TextToJsonField.php
+1
-0
1 addition, 0 deletions
src/PluginBaseClasses/TextToJsonField.php
with
4 additions
and
3 deletions
src/AiInterpolatorRuleRunner.php
+
3
−
3
View file @
09d2dd29
...
...
@@ -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
ContainerAware
EventDispatcher
$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
,
ContainerAware
EventDispatcher
$eventDispatcher
)
{
public
function
__construct
(
EntityTypeManager
$entityTypeManager
,
AiFieldRules
$fieldRules
,
EventDispatcher
$eventDispatcher
)
{
$this
->
entityType
=
$entityTypeManager
;
$this
->
fieldRules
=
$fieldRules
;
$this
->
eventDispatcher
=
$eventDispatcher
;
...
...
This diff is collapsed.
Click to expand it.
src/PluginBaseClasses/TextToJsonField.php
+
1
−
0
View file @
09d2dd29
...
...
@@ -63,4 +63,5 @@ class TextToJsonField extends SimpleTextChat {
}
return
TRUE
;
}
}
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