public function FractionsliderConfigurableTextBlock::blockSubmit in Views FractionSlider 8
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ FractionsliderConfigurableTextBlock.php, line 138
Class
- FractionsliderConfigurableTextBlock
- Provides a 'Example: configurable text string' block.
Namespace
Drupal\fractionslider\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['fractionslider_string'] = $form_state
->getValue('fractionslider_string_text');
$this->configuration['fractionslider_controls'] = $form_state
->getValue('fractionslider_controls');
$this->configuration['fractionslider_pager'] = $form_state
->getValue('fractionslider_pager');
$this->configuration['fractionslider_dimensions'] = $form_state
->getValue('fractionslider_dimensions');
$this->configuration['fractionslider_fullwidth'] = $form_state
->getValue('fractionslider_fullwidth');
$this->configuration['fractionslider_responsive'] = $form_state
->getValue('fractionslider_responsive');
$this->configuration['fractionslider_increase'] = $form_state
->getValue('fractionslider_increase');
$this->configuration['fractionslider_pausehover'] = $form_state
->getValue('fractionslider_pausehover');
\Drupal::state()
->set('fractionslider_controls', $form_state
->getValue('fractionslider_controls'));
\Drupal::state()
->set('fractionslider_pager', $form_state
->getValue('fractionslider_pager'));
\Drupal::state()
->set('fractionslider_dimensions', $form_state
->getValue('fractionslider_dimensions'));
\Drupal::state()
->set('fractionslider_fullwidth', $form_state
->getValue('fractionslider_fullwidth'));
\Drupal::state()
->set('fractionslider_responsive', $form_state
->getValue('fractionslider_responsive'));
\Drupal::state()
->set('fractionslider_increase', $form_state
->getValue('fractionslider_increase'));
\Drupal::state()
->set('fractionslider_pausehover', $form_state
->getValue('fractionslider_pausehover'));
}