public function FieldableEntityInterface::getTranslatableFields

public FieldableEntityInterface::getTranslatableFields($include_computed = TRUE)

Gets an array of field item lists for translatable fields.

Parameters

bool $include_computed: If set to TRUE, computed fields are included. Defaults to TRUE.

Return value

\Drupal\Core\Field\FieldItemListInterface[] An array of field item lists implementing, keyed by field name.

File

core/lib/Drupal/Core/Entity/FieldableEntityInterface.php, line 192

Class

FieldableEntityInterface
Interface for entities having fields.

Namespace

Drupal\Core\Entity

Code

public function getTranslatableFields($include_computed = TRUE);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!FieldableEntityInterface.php/function/FieldableEntityInterface::getTranslatableFields/8.1.x