public function FacebookFeedBlock::blockSubmit in Facebook Feed Block 8
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ FacebookFeedBlock.php, line 105
Class
- FacebookFeedBlock
- Provides a 'FacebookFeedBlock' block.
Namespace
Drupal\facebook_feed\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['page_id'] = $form_state
->getValue('feed_settings')['page_id'];
$this->configuration['access_token'] = $form_state
->getValue('feed_settings')['access_token'];
$this->configuration['show_socials'] = $form_state
->getValue('feed_settings')['show_socials'];
$this->configuration['limit'] = $form_state
->getValue('feed_settings')['limit'];
}