You are here

public function View::getDisplay in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::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.

Overrides ViewEntityInterface::getDisplay

1 call to View::getDisplay()
View::addCacheMetadata in core/modules/views/src/Entity/View.php
Fills in the cache metadata of this view.

File

core/modules/views/src/Entity/View.php, line 232

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Entity

Code

public function &getDisplay($display_id) {
  return $this->display[$display_id];
}