function PerComponentEntityDisplay::getEntity

Same name and namespace in other branches
  1. 9 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()
  3. 11.x core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityDisplay.php \Drupal\migrate\Plugin\migrate\destination\PerComponentEntityDisplay::getEntity()

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);
}

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