function FieldableEntity::isEntityTranslatable
Same name and namespace in other branches
- 11.x core/modules/migrate_drupal/src/Plugin/migrate/source/d7/FieldableEntity.php \Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity::isEntityTranslatable()
- 10 core/modules/migrate_drupal/src/Plugin/migrate/source/d7/FieldableEntity.php \Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity::isEntityTranslatable()
- 8.9.x core/modules/migrate_drupal/src/Plugin/migrate/source/d7/FieldableEntity.php \Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity::isEntityTranslatable()
Checks if an entity type uses Entity Translation.
Parameters
string $entity_type: The entity type.
Return value
bool Whether the entity type uses entity translation.
File
-
core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ d7/ FieldableEntity.php, line 113
Class
- FieldableEntity
- Base class for D7 source plugins which need to collect field values.
Namespace
Drupal\migrate_drupal\Plugin\migrate\source\d7Code
protected function isEntityTranslatable($entity_type) {
return in_array($entity_type, $this->variableGet('entity_translation_entity_types', []), TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.