Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RevisionableEntityBundleInterface.php

function RevisionableEntityBundleInterface::shouldCreateNewRevision

Gets whether a new revision should be created by default.

Return value

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

4 methods override RevisionableEntityBundleInterface::shouldCreateNewRevision()
BlockContentType::shouldCreateNewRevision in core/modules/block_content/src/Entity/BlockContentType.php
Gets whether a new revision should be created by default.
MediaType::shouldCreateNewRevision in core/modules/media/src/Entity/MediaType.php
Gets whether a new revision should be created by default.
NodeType::shouldCreateNewRevision in core/modules/node/src/Entity/NodeType.php
Gets whether a new revision should be created by default.
Vocabulary::shouldCreateNewRevision in core/modules/taxonomy/src/Entity/Vocabulary.php
Gets whether a new revision should be created by default.

File

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

Class

RevisionableEntityBundleInterface
Provides an interface defining a revisionable entity bundle.

Namespace

Drupal\Core\Entity

Code

public function shouldCreateNewRevision();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal