DisplayVariant::$id

The plugin ID. Type: string File core/lib/Drupal/Core/Display/Annotation/DisplayVariant.php, line 42 Class DisplayVariant Defines a display variant annotation object. Namespace Drupal\Core\Display\Annotation Code public $id;

DisplayVariant::$admin_label

The administrative label. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/lib/Drupal/Core/Display/Annotation/DisplayVariant.php, line 51 Class DisplayVariant Defines a display variant annotation object. Namespace Drupal\Core\Display\Annotation Code public $admin_label = '';

DisplayVariant

Defines a display variant annotation object. Display variants are used to dictate the output of a given Display, which can be used to control the output of many parts of Drupal. Variants are usually chosen by some selection criteria, and are instantiated directly. Each variant must define its own approach to rendering, and can either load its own data or be injected with data from another Display object. @todo: Revise description when/if Displays are added to core: https://www.drupal.org/node/2

Display::__construct

public Display::__construct($type = NULL) Constructs a new Display object. File core/modules/views_ui/src/Form/Ajax/Display.php, line 16 Class Display Provides a form for editing the Views display. Namespace Drupal\views_ui\Form\Ajax Code public function __construct($type = NULL) { $this->setType($type); }

Display::validateForm

public Display::validateForm(array &$form, FormStateInterface $form_state) Form validation 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 ViewsFormBase::validateForm File core/modules/views_ui/src/Form/Ajax/Display.php, line 93 Class Display Provides a form for editing the Views display. Namespace Drupal\views_ui\Form\Ajax Code public function val

Display::submitForm

public Display::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 ViewsFormBase::submitForm File core/modules/views_ui/src/Form/Ajax/Display.php, line 106 Class Display Provides a form for editing the Views display. Namespace Drupal\views_ui\Form\Ajax Code public function submit

Display::getFormState

public Display::getFormState(ViewEntityInterface $view, $display_id, $js) @todo Remove this and switch all usage of $form_state->get('section') to $form_state->get('type'). Overrides ViewsFormBase::getFormState File core/modules/views_ui/src/Form/Ajax/Display.php, line 33 Class Display Provides a form for editing the Views display. Namespace Drupal\views_ui\Form\Ajax Code public function getFormState(ViewEntityInterface $view, $display_id, $js) { $form_state = parent::getFormS

Display::getFormKey

public Display::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/Display.php, line 23 Class Display Provides a form for editing the Views display. Namespace Drupal\views_ui\Form\Ajax Code public function getFormKey() { return 'display'; }

Display::getFormId

public Display::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/Display.php, line 50 Class Display Provides a form for editing the Views display. Namespace Drupal\views_ui\Form\Ajax Code public function getFormId() { return 'views_ui_edit_display_form'; }

Display::getForm

public Display::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 'aja