trait RedundantEditableConfigNamesTrait

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Form/RedundantEditableConfigNamesTrait.php \Drupal\Core\Form\RedundantEditableConfigNamesTrait

Implements ::getEditableConfigNames() for forms using #config_target.

Hierarchy

7 files declare their use of RedundantEditableConfigNamesTrait
BasicSettingsForm.php in core/modules/views_ui/src/Form/BasicSettingsForm.php
ConfigTargetTest.php in core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php
FileSystemForm.php in core/modules/system/src/Form/FileSystemForm.php
JsonApiSettingsForm.php in core/modules/jsonapi/src/Form/JsonApiSettingsForm.php
LayoutBuilderSettingsForm.php in core/modules/layout_builder/src/Form/LayoutBuilderSettingsForm.php

... See full list

File

core/lib/Drupal/Core/Form/RedundantEditableConfigNamesTrait.php, line 8

Namespace

Drupal\Core\Form
View source
trait RedundantEditableConfigNamesTrait {
    use ConfigFormBaseTrait;
    
    /**
     * {@inheritdoc}
     */
    protected function getEditableConfigNames() {
        // This form uses #config_target instead.
        return [];
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
ConfigFormBaseTrait::config protected function Retrieves a configuration object.
RedundantEditableConfigNamesTrait::getEditableConfigNames protected function Gets the configuration names that will be editable. Overrides ConfigFormBaseTrait::getEditableConfigNames

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.