public function ParagraphsGridLayoutPlugin::submitBehaviorForm in Paragraphs Collection 8
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 ParagraphsBehaviorBase::submitBehaviorForm
File
- src/
Plugin/ paragraphs/ Behavior/ ParagraphsGridLayoutPlugin.php, line 220
Class
- ParagraphsGridLayoutPlugin
- Provides a way to define grid based layouts.
Namespace
Drupal\paragraphs_collection\Plugin\paragraphs\BehaviorCode
public function submitBehaviorForm(ParagraphInterface $paragraph, array &$form, FormStateInterface $form_state) {
$paragraph
->setBehaviorSettings($this->pluginId, $form_state
->getValues()['layout_wrapper']);
}