You are here

protected function MigrationDefinitionCreator::getElementLastPart in GatherContent 8.5

Return the entity field's name.

1 call to MigrationDefinitionCreator::getElementLastPart()
MigrationDefinitionCreator::setDefinitionFieldProperties in src/MigrationDefinitionCreator.php
Set the field process and destination properties.

File

src/MigrationDefinitionCreator.php, line 675

Class

MigrationDefinitionCreator
Create dynamic migration definitions.

Namespace

Drupal\gathercontent

Code

protected function getElementLastPart(string $element) {
  if (strpos($element, '.')) {
    $parts = explode('.', $element);
    return end($parts);
  }
  return $element;
}