You are here

public function MediaBundle::setNewRevision in Media entity 8

Sets whether a new revision should be created by default.

Parameters

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

Overrides MediaBundleInterface::setNewRevision

File

src/Entity/MediaBundle.php, line 240

Class

MediaBundle
Defines the Media bundle configuration entity.

Namespace

Drupal\media_entity\Entity

Code

public function setNewRevision($new_revision) {
  $this->new_revision = $new_revision;
}