Paragraphs Editor
Main Page
Namespaces
Classes
Files
File List
GeneratorBase.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Drupal\paragraphs_editor\WidgetBinder
;
4
5
use
Drupal\Core\Render\RenderContext
;
6
use
Drupal\Core\Field\EntityReferenceFieldItemListInterface
;
7
use
Drupal\paragraphs\ParagraphInterface
;
8
9
/**
10
* A utility class for widget binder data generator services to extend.
11
*/
12
abstract
class
GeneratorBase
implements
GeneratorInterface
{
13
14
/**
15
* {@inheritdoc}
16
*/
17
public
function
initialize
(
WidgetBinderData
$data,
WidgetBinderDataCompilerState
$state, ParagraphInterface $paragraph) {
18
}
19
20
/**
21
* {@inheritdoc}
22
*/
23
public
function
processParagraph
(
WidgetBinderData
$data,
WidgetBinderDataCompilerState
$state, ParagraphInterface $paragraph) {
24
}
25
26
/**
27
* {@inheritdoc}
28
*/
29
public
function
processField
(
WidgetBinderData
$data,
WidgetBinderDataCompilerState
$state, EntityReferenceFieldItemListInterface $items, $is_editor_field) {
30
}
31
32
/**
33
* {@inheritdoc}
34
*/
35
public
function
postprocessParagraph
(
WidgetBinderData
$data,
WidgetBinderDataCompilerState
$state, ParagraphInterface $paragraph) {
36
}
37
38
/**
39
* {@inheritdoc}
40
*/
41
public
function
postprocessField
(
WidgetBinderData
$data,
WidgetBinderDataCompilerState
$state, EntityReferenceFieldItemListInterface $items, $is_editor_field) {
42
}
43
44
/**
45
* {@inheritdoc}
46
*/
47
public
function
complete
(
WidgetBinderData
$data,
WidgetBinderDataCompilerState
$state, RenderContext $render_context, $markup) {
48
}
49
50
}
Drupal\paragraphs_editor\WidgetBinder\GeneratorBase\processField
processField(WidgetBinderData $data, WidgetBinderDataCompilerState $state, EntityReferenceFieldItemListInterface $items, $is_editor_field)
Definition:
GeneratorBase.php:29
Drupal\paragraphs_editor\WidgetBinder\GeneratorBase\complete
complete(WidgetBinderData $data, WidgetBinderDataCompilerState $state, RenderContext $render_context, $markup)
Definition:
GeneratorBase.php:47
EntityReferenceFieldItemListInterface
Drupal\paragraphs_editor\WidgetBinder\GeneratorBase\initialize
initialize(WidgetBinderData $data, WidgetBinderDataCompilerState $state, ParagraphInterface $paragraph)
Definition:
GeneratorBase.php:17
RenderContext
Drupal\paragraphs_editor\WidgetBinder\GeneratorBase\processParagraph
processParagraph(WidgetBinderData $data, WidgetBinderDataCompilerState $state, ParagraphInterface $paragraph)
Definition:
GeneratorBase.php:23
ParagraphInterface
Drupal\paragraphs_editor\WidgetBinder\GeneratorBase
Definition:
GeneratorBase.php:12
Drupal\paragraphs_editor\WidgetBinder
Definition:
EditableField.php:3
Drupal\paragraphs_editor\WidgetBinder\WidgetBinderDataCompilerState
Definition:
WidgetBinderDataCompilerState.php:15
Drupal\paragraphs_editor\WidgetBinder\GeneratorBase\postprocessField
postprocessField(WidgetBinderData $data, WidgetBinderDataCompilerState $state, EntityReferenceFieldItemListInterface $items, $is_editor_field)
Definition:
GeneratorBase.php:41
Drupal\paragraphs_editor\WidgetBinder\GeneratorBase\postprocessParagraph
postprocessParagraph(WidgetBinderData $data, WidgetBinderDataCompilerState $state, ParagraphInterface $paragraph)
Definition:
GeneratorBase.php:35
Drupal\paragraphs_editor\WidgetBinder\GeneratorInterface
Definition:
GeneratorInterface.php:18
Drupal\paragraphs_editor\WidgetBinder\WidgetBinderData
Definition:
WidgetBinderData.php:13
src
WidgetBinder
GeneratorBase.php
Generated by
1.8.11