You are here

public function ContactPopupBlock::blockSubmit in Contact Form Popup 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/ContactPopupBlock.php, line 198

Class

ContactPopupBlock
Provides a 'ContactPopupBlock' block.

Namespace

Drupal\contact_poup\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['contact_form'] = !$form_state
    ->isValueEmpty('contact_form') ? $form_state
    ->getValue('contact_form') : '';
  $this->configuration['link_title'] = !$form_state
    ->isValueEmpty('link_title') ? $form_state
    ->getValue('link_title') : '';
}