function EntityConfigBase::isTranslationDestination

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase::isTranslationDestination()
  2. 8.9.x core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase::isTranslationDestination()
  3. 11.x core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase::isTranslationDestination()

Get whether this destination is for translations.

Return value

bool Whether this destination is for translations.

8 calls to EntityConfigBase::isTranslationDestination()
EntityConfigBase::generateId in core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php
Generates an entity ID.
EntityConfigBase::getIds in core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php
Gets the destination IDs.
EntityConfigBase::import in core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php
Import the row.
EntityConfigBase::rollback in core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php
Delete the specified destination object from the target Drupal.
EntityConfigBase::updateEntity in core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php
Updates an entity with the contents of a row.

... See full list

File

core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php, line 172

Class

EntityConfigBase
Base destination class for importing configuration entities.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

protected function isTranslationDestination() {
    return !empty($this->configuration['translations']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.