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. 10 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.

7 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.
EntityFieldInstance::getIds in core/modules/migrate/src/Plugin/migrate/destination/EntityFieldInstance.php
Gets the destination IDs.

... See full list

File

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

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.