You are here

public function InstagramBlockBlock::blockValidate in Instagram Block 8

Overrides BlockPluginTrait::blockValidate

File

src/Plugin/Block/InstagramBlockBlock.php, line 140
Contains \Drupal\instagram_block\Plugin\Block\InstagramBlockBlock.

Class

InstagramBlockBlock
Provides an Instagram block.

Namespace

Drupal\instagram_block\Plugin\Block

Code

public function blockValidate($form, FormStateInterface $form_state) {

  // @TODO This is postponed until the resolution of [#2537732]

  //if (!is_numeric($form_state->getValue('count'))) {

  //  $form_state->setErrorByName('count', $this->t('Count must be numeric'));

  //}
}