Paragraphs Editor
GeneratorBase.php
Go to the documentation of this file.
1 <?php
2 
4 
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 }
processField(WidgetBinderData $data, WidgetBinderDataCompilerState $state, EntityReferenceFieldItemListInterface $items, $is_editor_field)
complete(WidgetBinderData $data, WidgetBinderDataCompilerState $state, RenderContext $render_context, $markup)
initialize(WidgetBinderData $data, WidgetBinderDataCompilerState $state, ParagraphInterface $paragraph)
processParagraph(WidgetBinderData $data, WidgetBinderDataCompilerState $state, ParagraphInterface $paragraph)
postprocessField(WidgetBinderData $data, WidgetBinderDataCompilerState $state, EntityReferenceFieldItemListInterface $items, $is_editor_field)
postprocessParagraph(WidgetBinderData $data, WidgetBinderDataCompilerState $state, ParagraphInterface $paragraph)