View::mergeDefaultDisplaysOptions

public View::mergeDefaultDisplaysOptions() Add defaults to the display options. Overrides ViewEntityInterface::mergeDefaultDisplaysOptions File core/modules/views/src/Entity/View.php, line 426 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function mergeDefaultDisplaysOptions() { $displays = array(); foreach ($this->get('display') as $key => $options) { $options += array( 'display_options' => array(), 'displa

View::label

public View::label() Gets the label of the entity. Return value string|null The label of the entity, or NULL if there is no label defined. Overrides Entity::label File core/modules/views/src/Entity/View.php, line 141 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function label() { if (!$label = $this->get('label')) { $label = $this->id(); } return $label; }

View::isInstallable

public View::isInstallable() Checks whether this entity is installable. For example, a default view might not be installable if the base table doesn't exist. @retun bool TRUE if the entity is installable, FALSE otherwise. Overrides ConfigEntityBase::isInstallable File core/modules/views/src/Entity/View.php, line 445 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function isInstallable() { $table_definition = \Drupal::service('views.vie

View::invalidateCaches

public View::invalidateCaches() Invalidates cache tags. File core/modules/views/src/Entity/View.php, line 465 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function invalidateCaches() { // Invalidate cache tags for cached rows. $tags = $this->getCacheTags(); \Drupal::service('cache_tags.invalidator')->invalidateTags($tags); }

View::getInfo

public View::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/modules/views/src/Element/View.php, line 18 Class View Provides a render element to display a view. Namespace Drupal\views\Element Code public function getInfo() {

View::getExecutable

public View::getExecutable() Gets an executable instance for this view. Return value \Drupal\views\ViewExecutable A view executable instance. Overrides ViewEntityInterface::getExecutable File core/modules/views/src/Entity/View.php, line 120 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function getExecutable() { // Ensure that an executable View is available. if (!isset($this->executable)) { $this->executable = Views::exe

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($d

View::generateDisplayId

protected View::generateDisplayId($plugin_id) Generates a display ID of a certain plugin type. Parameters string $plugin_id: Which plugin should be used for the new display ID. Return value string File core/modules/views/src/Entity/View.php, line 208 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code protected function generateDisplayId($plugin_id) { // 'default' is singular and is unique, so just go with 'default' // for it. For all others,

View::duplicateDisplayAsType

public View::duplicateDisplayAsType($old_display_id, $new_display_type) Duplicates an existing display into a new display type. For example clone to display a page display as a block display. Parameters string $old_display_id: The origin of the duplicated display. string $new_display_type: The display type of the new display. Return value string The display ID of the new display. Overrides ViewEntityInterface::duplicateDisplayAsType File core/modules/views/src/Entity/View.php, line 237 Cla

View::createDuplicate

public View::createDuplicate() Creates a duplicate of the entity. Return value static A clone of $this with all identifiers unset, so saving it inserts a new entity into the storage system. Overrides ConfigEntityBase::createDuplicate File core/modules/views/src/Entity/View.php, line 132 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function createDuplicate() { $duplicate = parent::createDuplicate(); unset($duplicate->executable)