View::getDisplay

public &View::getDisplay($display_id)

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

File

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

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Entity

Code

public function &getDisplay($display_id) {
  return $this->display[$display_id];
}
doc_Drupal
2016-10-29 09:53:40
Comments
Leave a Comment

Please login to continue.