You are here

private function DisclaimerEmailMatchForm::populateSettings in Disclaimer 8

3 calls to DisclaimerEmailMatchForm::populateSettings()
DisclaimerEmailMatchForm::leaveForm in src/Form/DisclaimerEmailMatchForm.php
DisclaimerEmailMatchForm::validateEmail in src/Form/DisclaimerEmailMatchForm.php
DisclaimerEmailMatchForm::validateForm in src/Form/DisclaimerEmailMatchForm.php
Form validation handler.

File

src/Form/DisclaimerEmailMatchForm.php, line 197

Class

DisclaimerEmailMatchForm
Class DisclaimerEmailMatchForm.

Namespace

Drupal\disclaimer\Form

Code

private function populateSettings(array $form, FormStateInterface $form_state) {
  $block = Block::load($form_state
    ->getValue('block_id'));

  // Exit in case we don't have required block.
  if ($block) {
    $this->blockSettings = $block
      ->get('settings');
  }
}