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::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::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::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::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::calculateDependencies

public View::calculateDependencies() Calculates dependencies and stores them in the dependency property. Return value $this Overrides ConfigEntityBase::calculateDependencies See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/modules/views/src/Entity/View.php, line 269 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function calculateDependencies() { parent::calculateDependencies(); // Ensure that the view is depe

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::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)