public function FblikebuttonBlock::blockSubmit in Facebook Like Button 8
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ FblikebuttonBlock.php, line 163
Class
- FblikebuttonBlock
- Provides a Facebook Like Button Block
Namespace
Drupal\fblikebutton\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$block_url = $values['settings']['block_url'];
$layout = $values['appearance']['layout'];
$show_faces = $values['appearance']['show_faces'];
$action = $values['appearance']['action'];
$font = $values['appearance']['font'];
$color_scheme = $values['appearance']['color_scheme'];
$language = $values['appearance']['language'];
$this->configuration['block_url'] = $block_url;
$this->configuration['layout'] = $layout;
$this->configuration['show_faces'] = $show_faces;
$this->configuration['block_url'] = $block_url;
$this->configuration['action'] = $action;
$this->configuration['font'] = $font;
$this->configuration['color_scheme'] = $color_scheme;
$this->configuration['language'] = $language;
}