public BlockBase::validateConfigurationForm(array &$form, FormStateInterface $form_state)
Most block plugins should not override this method. To add validation for a specific block type, override BlockBase::blockValidate().
Overrides PluginFormInterface::validateConfigurationForm
\Drupal\Core\Block\BlockBase::blockValidate()
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) { // Remove the admin_label form item element value so it will not persist. $form_state->unsetValue('admin_label'); $this->blockValidate($form, $form_state); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Block!BlockBase.php/function/BlockBase::validateConfigurationForm/8.1.x