public function EntityInterface::isDefaultRevision

Checks if this entity is the default revision.

Parameters

bool $new_value: (optional) A Boolean to (re)set the isDefaultRevision flag.

Return value

bool TRUE if the entity is the default revision, FALSE otherwise. If $new_value was passed, the previous value is returned.

2 methods override EntityInterface::isDefaultRevision()

File

drupal/core/lib/Drupal/Core/Entity/EntityInterface.php, line 183
Definition of Drupal\Core\Entity\EntityInterface.

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function isDefaultRevision($new_value = NULL);