You are here

public function ExampleMultilingualField::isTranslatable in Extra Field 8

Same name and namespace in other branches
  1. 8.2 modules/extra_field_example/src/Plugin/ExtraField/Display/ExampleMultilingualField.php \Drupal\extra_field_example\Plugin\ExtraField\Display\ExampleMultilingualField::isTranslatable()

The field is translatable.

Return value

bool Whether the field's content is translatable.

Overrides ExtraFieldDisplayFormattedBase::isTranslatable

File

modules/extra_field_example/src/Plugin/ExtraField/Display/ExampleMultilingualField.php, line 77

Class

ExampleMultilingualField
Example Extra field Display.

Namespace

Drupal\extra_field_example\Plugin\ExtraField\Display

Code

public function isTranslatable() {

  // Override the default translatability setting.
  return TRUE;
}