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

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

Provides a render element to display a view. Plugin annotation @RenderElement("view") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\views\Element\View File core/modules/views/src/Element/View.php, line 13 Namespace Drupal\views\Elem