public function InstagramBlockBlock::blockSubmit in Instagram Block 8
Same name and namespace in other branches
- 8.3 src/Plugin/Block/InstagramBlockBlock.php \Drupal\instagram_block\Plugin\Block\InstagramBlockBlock::blockSubmit()
- 8.2 src/Plugin/Block/InstagramBlockBlock.php \Drupal\instagram_block\Plugin\Block\InstagramBlockBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ InstagramBlockBlock.php, line 150 - Contains \Drupal\instagram_block\Plugin\Block\InstagramBlockBlock.
Class
- InstagramBlockBlock
- Provides an Instagram block.
Namespace
Drupal\instagram_block\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
if ($form_state
->hasAnyErrors()) {
return;
}
else {
$this->configuration['count'] = $form_state
->getValue('count');
$this->configuration['width'] = $form_state
->getValue('width');
$this->configuration['height'] = $form_state
->getValue('height');
$this->configuration['img_resolution'] = $form_state
->getValue('img_resolution');
$this->configuration['cache_time_minutes'] = $form_state
->getValue('cache_time_minutes');
}
}