You are here

public function SocialBlockBase::blockSubmit in Social Feed 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/SocialBlockBase.php, line 57

Class

SocialBlockBase
Abstract base class SocialBlockBase.

Namespace

Drupal\socialfeed\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $values = $form_state
    ->getValues();
  $this->configuration['override'] = $values['override'];
  foreach ($values['overrides'] as $key => $value) {
    $this->configuration[$key] = $value;
  }
}