BaseFieldDefinition::setRevisionable

public BaseFieldDefinition::setRevisionable($revisionable)

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 249

Class

BaseFieldDefinition
A class for defining entity fields.

Namespace

Drupal\Core\Field

Code

public function setRevisionable($revisionable) {
  $this->definition['revisionable'] = $revisionable;
  return $this;
}
doc_Drupal
2016-10-29 08:45:45
Comments
Leave a Comment

Please login to continue.