public function ParagraphsGridLayoutPlugin::submitConfigurationForm in Paragraphs Collection 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides ParagraphsBehaviorBase::submitConfigurationForm
File
- src/
Plugin/ paragraphs/ Behavior/ ParagraphsGridLayoutPlugin.php, line 157
Class
- ParagraphsGridLayoutPlugin
- Provides a way to define grid based layouts.
Namespace
Drupal\paragraphs_collection\Plugin\paragraphs\BehaviorCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this->configuration['paragraph_reference_field'] = $form_state
->getValue('paragraph_reference_field');
$this->configuration['available_grid_layouts'] = array_filter($form_state
->getValue('available_grid_layouts'));
}