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()
Entity::isDefaultRevision in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements Drupal\Core\Entity\EntityInterface::isDefaultRevision().
ViewUI::isDefaultRevision in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
Implements \Drupal\Core\Entity\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);