Implements \Drupal\block\BlockPluginInterface::submit().
Most block plugins should not override this method. To add submission handling for a specific block type, override BlockBase::blockSubmit().
@todo Add inline documentation to this method.
Overrides BlockPluginInterface::submit
\Drupal\block\BlockBase::blockSubmit()
public function submit($form, &$form_state) {
if (!form_get_errors()) {
$this->configuration['label'] = $form_state['values']['label'];
$this->configuration['label_display'] = $form_state['values']['label_display'];
$this->configuration['module'] = $form_state['values']['module'];
$this
->blockSubmit($form, $form_state);
}
}