public function ParagraphsBehaviorBase::submitBehaviorForm

Submit the values taken from the form to store the values.

This method is responsible for submitting the data and saving it in the paragraphs entity.

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.

Overrides ParagraphsBehaviorInterface::submitBehaviorForm

3 methods override ParagraphsBehaviorBase::submitBehaviorForm()
ParagraphsGridLayoutPlugin::submitBehaviorForm in paragraphs_collection/src/Plugin/paragraphs/Behavior/ParagraphsGridLayoutPlugin.php
Submit the values taken from the form to store the values.
ParagraphsSliderPlugin::submitBehaviorForm in paragraphs_collection/modules/paragraphs_collection_demo/src/Plugin/paragraphs/Behavior/ParagraphsSliderPlugin.php
Submit the values taken from the form to store the values.
ParagraphsStylePlugin::submitBehaviorForm in paragraphs_collection/src/Plugin/paragraphs/Behavior/ParagraphsStylePlugin.php
Submit the values taken from the form to store the values.

File

paragraphs/src/ParagraphsBehaviorBase.php, line 137

Class

ParagraphsBehaviorBase

Namespace

Drupal\paragraphs

Code

public function submitBehaviorForm(ParagraphInterface $paragraph, array &$form, FormStateInterface $form_state) {
  $filtered_values = $this
    ->filterBehaviorFormSubmitValues($paragraph, $form, $form_state);
  $paragraph
    ->setBehaviorSettings($this
    ->getPluginId(), $filtered_values);
}