function MediaTypeInterface::setNewRevision

Same name in other branches
  1. 9 core/modules/media/src/MediaTypeInterface.php \Drupal\media\MediaTypeInterface::setNewRevision()
  2. 8.9.x core/modules/media/src/MediaTypeInterface.php \Drupal\media\MediaTypeInterface::setNewRevision()
  3. 11.x core/modules/media/src/MediaTypeInterface.php \Drupal\media\MediaTypeInterface::setNewRevision()

Sets whether new revisions should be created by default.

Parameters

bool $new_revision: TRUE if media items of this type should create new revisions by default.

Return value

$this

1 method overrides MediaTypeInterface::setNewRevision()
MediaType::setNewRevision in core/modules/media/src/Entity/MediaType.php
Sets whether new revisions should be created by default.

File

core/modules/media/src/MediaTypeInterface.php, line 74

Class

MediaTypeInterface
Provides an interface defining a media type entity.

Namespace

Drupal\media

Code

public function setNewRevision($new_revision);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.