function ViewUI::isNew

Same name and namespace in other branches
  1. 9 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::isNew()
  2. 8.9.x core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::isNew()
  3. 11.x core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::isNew()

Determines whether the entity is new.

Usually an entity is new if no ID exists for it yet. However, entities may be enforced to be new with existing IDs too.

Return value

bool TRUE if the entity is new, or FALSE if the entity has already been saved.

Overrides EntityInterface::isNew

File

core/modules/views_ui/src/ViewUI.php, line 943

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

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

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