public function View::getDisplay in Drupal 9
Same name and namespace in other branches
- 8 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 230
Class
- View
- Defines a View configuration entity class.
Namespace
Drupal\views\EntityCode
public function &getDisplay($display_id) {
return $this->display[$display_id];
}