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

Breadcrumb

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

function BaseFieldDefinition::setRevisionable

Sets whether the field is revisionable.

Parameters

bool $revisionable: Whether the field is revisionable.

Return value

$this The object itself for chaining.

File

core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 250

Class

BaseFieldDefinition
A class for defining entity fields.

Namespace

Drupal\Core\Field

Code

public function setRevisionable($revisionable) {
    $this->definition['revisionable'] = $revisionable;
    return $this;
}

API Navigation

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