public function SimpleInstagramBlock::blockSubmit in Simple Instagram Feed Block 8.3
Same name and namespace in other branches
- 8 src/Plugin/Block/SimpleInstagramBlock.php \Drupal\simple_instagram_feed\Plugin\Block\SimpleInstagramBlock::blockSubmit()
- 8.2 src/Plugin/Block/SimpleInstagramBlock.php \Drupal\simple_instagram_feed\Plugin\Block\SimpleInstagramBlock::blockSubmit()
- 1.0.x src/Plugin/Block/SimpleInstagramBlock.php \Drupal\simple_instagram_feed\Plugin\Block\SimpleInstagramBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ SimpleInstagramBlock.php, line 211
Class
- SimpleInstagramBlock
- Provides a block with a dynamic Instagram Feed.
Namespace
Drupal\simple_instagram_feed\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
parent::blockSubmit($form, $form_state);
$values = $form_state
->getValues();
$this->configuration['simple_instagram_username'] = $values['simple_instagram_username'];
$this->configuration['simple_instagram_display_profile'] = $values['simple_instagram_display_profile'];
$this->configuration['simple_instagram_display_biography'] = $values['simple_instagram_display_biography'];
$this->configuration['simple_instagram_captions'] = $values['simple_instagram_captions'];
$this->configuration['simple_instagram_items'] = $values['simple_instagram_items'];
$this->configuration['simple_instagram_items_per_row_type'] = $values['simple_instagram_items_per_row']['simple_instagram_items_per_row_type'];
$this->configuration['simple_instagram_items_per_row_default'] = $values['simple_instagram_items_per_row']['simple_instagram_items_per_row_default'];
$this->configuration['simple_instagram_items_per_row_l_720'] = $values['simple_instagram_items_per_row']['simple_instagram_items_per_row_l_720'];
$this->configuration['simple_instagram_items_per_row_l_960'] = $values['simple_instagram_items_per_row']['simple_instagram_items_per_row_l_960'];
$this->configuration['simple_instagram_items_per_row_h_960'] = $values['simple_instagram_items_per_row']['simple_instagram_items_per_row_h_960'];
$this->configuration['simple_instagram_styling'] = $values['simple_instagram_styling'];
$this->configuration['simple_instagram_image_size'] = $values['simple_instagram_image_size'];
$this->configuration['simple_instagram_lazy_load'] = $values['simple_instagram_lazy_load'];
}