function SettingsForm::config

Overrides ConfigFormBaseTrait::config

1 call to SettingsForm::config()
SettingsForm::buildForm in tests/modules/rules_test_ui_embed/src/Form/SettingsForm.php
Form constructor.

File

tests/modules/rules_test_ui_embed/src/Form/SettingsForm.php, line 38

Class

SettingsForm
Implements the settings form.

Namespace

Drupal\rules_test_ui_embed\Form

Code

protected function config($name) {
    // Get the editable config from the Rules UI handlers, such that any
    // interim changes to the contained Rules component are picked up.
    $config = $this->rulesUiHandler ? $this->rulesUiHandler
        ->getConfig() : NULL;
    if ($config->getName() == $name && in_array($name, $this->getEditableConfigNames())) {
        return $config;
    }
    return parent::config($name);
}