ConfigHandler::getForm

public ConfigHandler::getForm(ViewEntityInterface $view, $display_id, $js, $type = NULL, $id = NULL) Creates a new instance of this form. @todo When https://www.drupal.org/node/1843224 is in, this will return \Drupal\Core\Ajax\AjaxResponse instead of the array of AJAX commands. Parameters \Drupal\views\ViewEntityInterface $view: The view being edited. string|null $display_id: The display ID being edited, or NULL to load the first available display. string $js: If this is an AJAX form, it will

ConfigHandler::buildForm

public ConfigHandler::buildForm(array $form, FormStateInterface $form_state, Request $request = NULL) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/views_ui/src/Form/Ajax/ConfigHandler.php, line 50 Class ConfigHandler Provides a form for configuring an item in the

ConfigHandler

Provides a form for configuring an item in the Views UI. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\views_ui\Form\Ajax\ViewsFormBase implements ViewsFormInterfaceclass \Drupal\views_ui\Form\Ajax\ConfigHandler File core/modules/views_ui/src/Form/Ajax/ConfigHandler.php, line 14 Name

ConfigFormBaseTrait::getEditableConfigNames

abstract protected ConfigFormBaseTrait::getEditableConfigNames() Gets the configuration names that will be editable. Return value array An array of configuration object names that are editable if called in conjunction with the trait's config() method. File core/lib/Drupal/Core/Form/ConfigFormBaseTrait.php, line 67 Class ConfigFormBaseTrait Provides access to configuration for forms. Namespace Drupal\Core\Form Code abstract protected function getEditableConfigNames();

ConfigFormBaseTrait::config

protected ConfigFormBaseTrait::config($name) Retrieves a configuration object. Parameters string $name: The name of the configuration object to retrieve. The name corresponds to a configuration file. For \Drupal::config('book.admin') , the config object returned will contain the contents of book.admin configuration file. Return value \Drupal\Core\Config\Config|\Drupal\Core\Config\ImmutableConfig An editable configuration object if the given name is listed in the getEditableConfigNames() met

ConfigFormBaseTrait

Provides access to configuration for forms. This trait provides a config() method that returns override free and mutable config objects if the configuration name is in the array returned by the getEditableConfigNames() implementation. Forms that present configuration to the user have to take care not to save configuration overrides to the stored configuration since overrides are often environment specific. Default values of form elements should be obtained from override free configuration objec

ConfigFormBase::__construct

public ConfigFormBase::__construct(ConfigFactoryInterface $config_factory) Constructs a \Drupal\system\ConfigFormBase object. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects. File core/lib/Drupal/Core/Form/ConfigFormBase.php, line 20 Class ConfigFormBase Base class for implementing system configuration forms. Namespace Drupal\Core\Form Code public function __construct(ConfigFactoryInterface $config_factory) { $this->set

ConfigFormBase::submitForm

public ConfigFormBase::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/lib/Drupal/Core/Form/ConfigFormBase.php, line 53 Class ConfigFormBase Base class for implementing system configuration forms. Namespace Drupal\Core\Form Code public funct

ConfigFormBase::create

public static ConfigFormBase::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service c

ConfigFormBase::buildForm

public ConfigFormBase::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/lib/Drupal/Core/Form/ConfigFormBase.php, line 36 Class ConfigFormBase Base class for implementing system configuration forms. Namespace Drupal\Co