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

public View::postCreate(EntityStorageInterface $storage) Acts on a created entity before hooks are invoked. Used after the entity is created, but before saving the entity and before any of the presave hooks are invoked. See the Entity CRUD topic for more information. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. Overrides Entity::postCreate See also \Drupal\Core\Entity\EntityInterface::create() File core/modules/views/src/Entity/View.php, line 388

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