function ViewExecutable::id

Same name in other branches
  1. 9 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::id()
  2. 8.9.x core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::id()
  3. 11.x core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::id()

Returns the identifier.

Return value

string|null The entity identifier, or NULL if the object does not yet have an identifier.

File

core/modules/views/src/ViewExecutable.php, line 532

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public function id() {
    return $this->storage
        ->id();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.