public function Entity::isTranslatable

Implements \Drupal\Core\Entity\EntityInterface::isTranslatable().

Overrides EntityInterface::isTranslatable

File

drupal/core/lib/Drupal/Core/Entity/Entity.php, line 528
Contains \Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function isTranslatable() {

  // @todo Inject the entity manager and retrieve bundle info from it.
  $bundles = entity_get_bundles($this->entityType);
  return !empty($bundles[$this
    ->bundle()]['translatable']);
}