You are here

protected function FieldableEntity::isEntityTranslatable in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal/src/Plugin/migrate/source/d7/FieldableEntity.php \Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity::isEntityTranslatable()
  2. 10 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.

4 calls to FieldableEntity::isEntityTranslatable()
Comment::prepareRow in core/modules/comment/src/Plugin/migrate/source/d7/Comment.php
Adds additional data to the row.
Node::prepareRow in core/modules/node/src/Plugin/migrate/source/d7/Node.php
Adds additional data to the row.
Term::prepareRow in core/modules/taxonomy/src/Plugin/migrate/source/d7/Term.php
Adds additional data to the row.
User::prepareRow in core/modules/user/src/Plugin/migrate/source/d7/User.php
Adds additional data to the row.

File

core/modules/migrate_drupal/src/Plugin/migrate/source/d7/FieldableEntity.php, line 93

Class

FieldableEntity
Base class for D7 source plugins which need to collect field values from the Field API.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source\d7

Code

protected function isEntityTranslatable($entity_type) {
  return in_array($entity_type, $this
    ->variableGet('entity_translation_entity_types', []), TRUE);
}