public function ViewUI::isNew in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
See also
\Drupal\Core\Entity\EntityInterface::enforceIsNew()
File
- core/
modules/ views_ui/ src/ ViewUI.php, line 960 - Contains \Drupal\views_ui\ViewUI.
Class
- ViewUI
- Stores UI related temporary settings.
Namespace
Drupal\views_uiCode
public function isNew() {
return $this->storage
->isNew();
}