protected function EntityConfigBase::generateId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase::generateId()
Generate an entity id.
Parameters
\Drupal\migrate\Row $row: The current row.
array $ids: The destination ids.
Return value
string The generated entity id.
1 call to EntityConfigBase::generateId()
- EntityConfigBase::import in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityConfigBase.php - Import the row.
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityConfigBase.php, line 118 - Contains \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase.
Class
- EntityConfigBase
- Class for importing configuration entities.
Namespace
Drupal\migrate\Plugin\migrate\destinationCode
protected function generateId(Row $row, array $ids) {
$id_values = array();
foreach ($ids as $id) {
$id_values[] = $row
->getDestinationProperty($id);
}
return implode('.', $id_values);
}