AddHandler::getFormKey

public AddHandler::getFormKey() Returns the key that represents this form. Return value string The form key used in the URL, e.g., the string 'add-handler' in 'admin/structure/views/%/add-handler/%/%/%'. Overrides ViewsFormInterface::getFormKey File core/modules/views_ui/src/Form/Ajax/AddHandler.php, line 25 Class AddHandler Provides a form for adding an item in the Views UI. Namespace Drupal\views_ui\Form\Ajax Code public function getFormKey() { return 'add-handler'; }

AddHandler::getFormId

public AddHandler::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/views_ui/src/Form/Ajax/AddHandler.php, line 40 Class AddHandler Provides a form for adding an item in the Views UI. Namespace Drupal\views_ui\Form\Ajax Code public function getFormId() { return 'views_ui_add_handler_form'; }

AddHandler::getForm

public AddHandler::getForm(ViewEntityInterface $view, $display_id, $js, $type = 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 be the string '

AddHandler::buildForm

public AddHandler::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/modules/views_ui/src/Form/Ajax/AddHandler.php, line 47 Class AddHandler Provides a form for adding an item in the Views UI. Namespace Drupal\views_ui

AddHandler

Provides a form for adding 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\AddHandler File core/modules/views_ui/src/Form/Ajax/AddHandler.php, line 13 Namespace Drup

AddForm::getFormId

public AddForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/path/src/Form/AddForm.php, line 15 Class AddForm Provides the path add form. Namespace Drupal\path\Form Code public function getFormId() { return 'path_admin_add'; }

AddForm::buildPath

protected AddForm::buildPath($pid) Builds the path used by the form. Parameters int|null $pid: Either the unique path ID, or NULL if a new one is being created. Overrides PathFormBase::buildPath File core/modules/path/src/Form/AddForm.php, line 22 Class AddForm Provides the path add form. Namespace Drupal\path\Form Code protected function buildPath($pid) { return array( 'source' => '', 'alias' => '', 'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED, '

AddForm

Provides the path add form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\path\Form\PathFormBaseclass \Drupal\path\Form\AddForm File core/modules/path/src/Form/AddForm.php, line 10 Namespace Drupal\path\Form Members Name Modifiers Type Description AddForm::buildPath pro

AddCssCommand::__construct

public AddCssCommand::__construct($styles) Constructs an AddCssCommand. Parameters string $styles: A string that contains the styles to be added to the page, including the wrapping <style> tag. File core/lib/Drupal/Core/Ajax/AddCssCommand.php, line 33 Class AddCssCommand An AJAX command for adding css to the page via ajax. Namespace Drupal\Core\Ajax Code public function __construct($styles) { $this->styles = $styles; }

AddCssCommand::render

public AddCssCommand::render() Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render File core/lib/Drupal/Core/Ajax/AddCssCommand.php, line 40 Class AddCssCommand An AJAX command for adding css to the page via ajax. Namespace Drupal\Core\Ajax Code public function render() { return array( 'command' => 'add_css', 'data' => $this->styles, ); }