interface RevisionableEntityBundleInterface

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Entity/RevisionableEntityBundleInterface.php \Drupal\Core\Entity\RevisionableEntityBundleInterface

Provides an interface defining a revisionable entity bundle.

Hierarchy

Expanded class hierarchy of RevisionableEntityBundleInterface

All classes that implement RevisionableEntityBundleInterface

5 files declare their use of RevisionableEntityBundleInterface
BlockContentTypeInterface.php in core/modules/block_content/src/BlockContentTypeInterface.php
EntityResource.php in core/modules/jsonapi/src/Controller/EntityResource.php
MediaTypeInterface.php in core/modules/media/src/MediaTypeInterface.php
NodeOperationAccessTest.php in core/modules/node/tests/src/Unit/NodeOperationAccessTest.php
NodeTypeInterface.php in core/modules/node/src/NodeTypeInterface.php

File

core/lib/Drupal/Core/Entity/RevisionableEntityBundleInterface.php, line 10

Namespace

Drupal\Core\Entity
View source
interface RevisionableEntityBundleInterface extends ConfigEntityInterface {
  
  /**
   * Gets whether a new revision should be created by default.
   *
   * @return bool
   *   TRUE if a new revision should be created by default.
   */
  public function shouldCreateNewRevision();

}

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