You are here

public function FBLikeboxBlock::blockSubmit in Facebook Page Plugin 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Block/FBLikeboxBlock.php \Drupal\fb_likebox\Plugin\Block\FBLikeboxBlock::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/FBLikeboxBlock.php, line 123

Class

FBLikeboxBlock
Provides a configurable block with Facebook Likebox's plugin.

Namespace

Drupal\fb_likebox\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $display_settings = $form_state
    ->getValue('fb_likebox_display_settings');
  foreach ($display_settings as $key => $value) {
    $this
      ->setConfigurationValue($key, $value);
  }
}