function ViewEntityInterface::getDisplay

Same name in other branches
  1. 9 core/modules/views/src/ViewEntityInterface.php \Drupal\views\ViewEntityInterface::getDisplay()
  2. 10 core/modules/views/src/ViewEntityInterface.php \Drupal\views\ViewEntityInterface::getDisplay()
  3. 11.x core/modules/views/src/ViewEntityInterface.php \Drupal\views\ViewEntityInterface::getDisplay()

Retrieves a specific display's configuration by reference.

Parameters

string $display_id: The display ID to retrieve, e.g., 'default', 'page_1', 'block_2'.

Return value

array A reference to the specified display configuration.

2 methods override ViewEntityInterface::getDisplay()
View::getDisplay in core/modules/views/src/Entity/View.php
Retrieves a specific display's configuration by reference.
ViewUI::getDisplay in core/modules/views_ui/src/ViewUI.php
Retrieves a specific display's configuration by reference.

File

core/modules/views/src/ViewEntityInterface.php, line 29

Class

ViewEntityInterface
Defines an interface for View storage classes.

Namespace

Drupal\views

Code

public function &getDisplay($display_id);

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