public function ParagraphsBehaviorBase::buildBehaviorForm

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

9 methods override ParagraphsBehaviorBase::buildBehaviorForm()
ParagraphsAnchorPlugin::buildBehaviorForm in paragraphs_collection/modules/paragraphs_collection_demo/src/Plugin/paragraphs/Behavior/ParagraphsAnchorPlugin.php
Builds a behavior perspective for each paragraph based on its type.
ParagraphsGridLayoutPlugin::buildBehaviorForm in paragraphs_collection/src/Plugin/paragraphs/Behavior/ParagraphsGridLayoutPlugin.php
Builds a behavior perspective for each paragraph based on its type.
ParagraphsLanguagePlugin::buildBehaviorForm in paragraphs_collection/src/Plugin/paragraphs/Behavior/ParagraphsLanguagePlugin.php
Builds a behavior perspective for each paragraph based on its type.
ParagraphsLockablePlugin::buildBehaviorForm in paragraphs_collection/src/Plugin/paragraphs/Behavior/ParagraphsLockablePlugin.php
Builds a behavior perspective for each paragraph based on its type.
ParagraphsSliderPlugin::buildBehaviorForm in paragraphs_collection/modules/paragraphs_collection_demo/src/Plugin/paragraphs/Behavior/ParagraphsSliderPlugin.php
Builds a behavior perspective for each paragraph based on its type.

... See full list

File

paragraphs/src/ParagraphsBehaviorBase.php, line 125

Class

ParagraphsBehaviorBase

Namespace

Drupal\paragraphs

Code

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