function FieldStorageDefinitionInterface::setTranslatable

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::setTranslatable()
  2. 8.9.x core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::setTranslatable()
  3. 11.x core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::setTranslatable()

Sets whether the field supports translation.

Parameters

bool $translatable: Whether the field supports translation.

Return value

$this

2 methods override FieldStorageDefinitionInterface::setTranslatable()
BaseFieldDefinition::setTranslatable in core/lib/Drupal/Core/Field/BaseFieldDefinition.php
Sets whether the field is translatable.
FieldStorageConfigInterface::setTranslatable in core/modules/field/src/FieldStorageConfigInterface.php
Sets whether the field is translatable.

File

core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php, line 97

Class

FieldStorageDefinitionInterface
Defines an interface for entity field storage definitions.

Namespace

Drupal\Core\Field

Code

public function setTranslatable($translatable);

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