public function KeyProviderRequirementsBase::validateConfigurationForm in Apigee Edge 8
File
- src/
Plugin/ KeyProvider/ KeyProviderRequirementsBase.php, line 76
Class
- KeyProviderRequirementsBase
- Base class for key providers with pre-requirements.
Namespace
Drupal\apigee_edge\Plugin\KeyProviderCode
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
try {
$this
->checkRequirements($form_state
->getFormObject()
->getEntity());
} catch (KeyProviderRequirementsException $exception) {
$form_state
->setError($form['settings']['provider_section']['key_provider'], $exception
->getTranslatableMarkupMessage());
}
}