/**
  * {@inheritdoc}
  */
 public function validateForm(array &$form, FormStateInterface $form_state)
 {
     // The page might have been serialized, resulting in a new variant
     // collection. Refresh the block object.
     $this->block = $this->getVariantPlugin()->getBlock($form_state->get('block_id'));
     $settings = (new FormState())->setValues($form_state->getValue('settings'));
     // Call the plugin validate handler.
     $this->block->validateConfigurationForm($form, $settings);
     // Update the original form values.
     $form_state->setValue('settings', $settings->getValues());
 }
 /**
  * {@inheritdoc}
  */
 public function validateConfigurationForm(array &$form, FormStateInterface $form_state)
 {
     $this->plugin->validateConfigurationForm($form, $form_state);
     $this->getEntityForm($this->entity)->validateForm($form, $form_state);
 }