You are here

public function LogType::shouldCreateNewRevision in Log entity 2.x

Gets whether a new revision should be created by default.

Return value

bool TRUE if a new revision should be created by default.

Overrides RevisionableEntityBundleInterface::shouldCreateNewRevision

File

src/Entity/LogType.php, line 181

Class

LogType
Defines the Log type entity.

Namespace

Drupal\log\Entity

Code

public function shouldCreateNewRevision() {
  return $this->new_revision;
}