You are here

public function MediaType::shouldCreateNewRevision in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media/src/Entity/MediaType.php \Drupal\media\Entity\MediaType::shouldCreateNewRevision()
  2. 10 core/modules/media/src/Entity/MediaType.php \Drupal\media\Entity\MediaType::shouldCreateNewRevision()

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

core/modules/media/src/Entity/MediaType.php, line 213

Class

MediaType
Defines the Media type configuration entity.

Namespace

Drupal\media\Entity

Code

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