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

public View::addDisplay($plugin_id = 'page', $title = NULL, $id = NULL) Adds a new display handler to the view, automatically creating an ID. Parameters string $plugin_id: (optional) The plugin type from the Views plugin annotation. Defaults to 'page'. string $title: (optional) The title of the display. Defaults to NULL. string $id: (optional) The ID to use, e.g., 'default', 'page_1', 'block_2'. Defaults to NULL. Return value string|bool The key to the display in $view->display, or FALSE i

View::addCacheMetadata

protected View::addCacheMetadata() Fills in the cache metadata of this view. Cache metadata is set per view and per display, and ends up being stored in the view's configuration. This allows Views to determine very efficiently: the max-age the cache contexts the cache tags In other words: this allows us to do the (expensive) work of initializing Views plugins and handlers to determine their effect on the cacheability of a view at save time rather than at runtime. File core/modules/views/src/E

View::$tag

The "tags" of a view. The tags are stored as a single string, though it is used as multiple tags for example in the views overview. Type: string File core/modules/views/src/Entity/View.php, line 77 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code protected $tag = '';

View::$module

The module implementing this view. Type: string File core/modules/views/src/Entity/View.php, line 115 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code protected $module = 'views';

View::$label

The label of the view. File core/modules/views/src/Entity/View.php, line 60 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code protected $label;

View::$id

The unique ID of the view. Type: string File core/modules/views/src/Entity/View.php, line 55 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code protected $id = NULL;

View::$executable

Stores a reference to the executable version of this view. Type: \Drupal\views\ViewExecutable File core/modules/views/src/Entity/View.php, line 108 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code protected $executable;

View::$display

Stores all display handlers of this view. An array containing Drupal\views\Plugin\views\display\DisplayPluginBase objects. Type: array File core/modules/views/src/Entity/View.php, line 94 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code protected $display = array();

View::$description

The description of the view, which is used only in the interface. Type: string File core/modules/views/src/Entity/View.php, line 67 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code protected $description = '';