You are here

function _config_readonly_validate_failure in Configuration Read-only mode 7

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

Helper validation function that always returns false.

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 37

Code

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