You are here

function _config_readonly_validate_failure in Configuration Read-only mode 8

Same name and namespace in other branches
  1. 7 config_readonly.module \_config_readonly_validate_failure()

Helper validation function that always returns false.

Parameters

array $form: A build form array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

1 string reference to '_config_readonly_validate_failure'
config_readonly_form_alter in ./config_readonly.module
Implements hook_form_alter().

File

./config_readonly.module, line 40
Contains config_readonly.module.

Code

function _config_readonly_validate_failure(array $form, FormStateInterface &$form_state) {
  $form_state
    ->setErrorByName(NULL, t('This configuration form cannot be saved because the configuration active store is read-only.'));
}