public function EntityInterface::isNewRevision

Returns whether a new revision should be created on save.

Return value

bool TRUE if a new revision should be created.

See also

\Drupal\Core\Entity\EntityInterface::setNewRevision()

3 methods override EntityInterface::isNewRevision()
Entity::isNewRevision in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements \Drupal\Core\Entity\EntityInterface::isNewRevision().
EntityBCDecorator::isNewRevision in drupal/core/lib/Drupal/Core/Entity/EntityBCDecorator.php
Forwards the call to the decorated entity.
ViewUI::isNewRevision in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php
Implements \Drupal\Core\Entity\EntityInterface::isNewRevision().

File

drupal/core/lib/Drupal/Core/Entity/EntityInterface.php, line 73
Contains \Drupal\Core\Entity\EntityInterface.

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function isNewRevision();