You are here

public function ParagraphsBehaviorBase::buildBehaviorForm in Paragraphs 8

Builds a behavior perspective for each paragraph based on its type.

This method is responsible for building the behavior form for each Paragraph so the user can set special attributes and properties.

Parameters

\Drupal\paragraphs\ParagraphInterface $paragraph: The paragraph.

array $form: An associative array containing the initial structure of the plugin form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The fields build array that the plugin creates.

Overrides ParagraphsBehaviorInterface::buildBehaviorForm

3 methods override ParagraphsBehaviorBase::buildBehaviorForm()
TestBoldTextBehavior::buildBehaviorForm in tests/modules/paragraphs_test/src/Plugin/paragraphs/Behavior/TestBoldTextBehavior.php
Builds a behavior perspective for each paragraph based on its type.
TestDummyBehavior::buildBehaviorForm in tests/modules/paragraphs_test/src/Plugin/paragraphs/Behavior/TestDummyBehavior.php
Builds a behavior perspective for each paragraph based on its type.
TestTextColorBehavior::buildBehaviorForm in tests/modules/paragraphs_test/src/Plugin/paragraphs/Behavior/TestTextColorBehavior.php
Builds a behavior perspective for each paragraph based on its type.

File

src/ParagraphsBehaviorBase.php, line 125

Class

ParagraphsBehaviorBase

Namespace

Drupal\paragraphs

Code

public function buildBehaviorForm(ParagraphInterface $paragraph, array &$form, FormStateInterface $form_state) {
  return $form;
}