public function Entity::isDefaultRevision

Implements Drupal\Core\Entity\EntityInterface::isDefaultRevision().

Overrides EntityInterface::isDefaultRevision

File

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

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function isDefaultRevision($new_value = NULL) {
  $return = $this->isDefaultRevision;
  if (isset($new_value)) {
    $this->isDefaultRevision = (bool) $new_value;
  }
  return $return;
}