You are here

protected function PerComponentEntityDisplay::getEntity in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityDisplay.php \Drupal\migrate\Plugin\migrate\destination\PerComponentEntityDisplay::getEntity()
  2. 10 core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityDisplay.php \Drupal\migrate\Plugin\migrate\destination\PerComponentEntityDisplay::getEntity()

Gets the entity.

Parameters

string $entity_type: The entity type to retrieve.

string $bundle: The entity bundle.

string $mode: The display mode.

Return value

\Drupal\Core\Entity\Display\EntityDisplayInterface The entity display object.

Overrides ComponentEntityDisplayBase::getEntity

File

core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityDisplay.php, line 58

Class

PerComponentEntityDisplay
This class imports one component of an entity display.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

protected function getEntity($entity_type, $bundle, $view_mode) {
  return $this->entityDisplayRepository
    ->getViewDisplay($entity_type, $bundle, $view_mode);
}