You are here

public function FieldStorageDefinitionInterface::setTranslatable in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::setTranslatable()
  2. 10 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);