function PerComponentEntityFormDisplay::getEntity

Same name in other branches
  1. 8.9.x core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityFormDisplay.php \Drupal\migrate\Plugin\migrate\destination\PerComponentEntityFormDisplay::getEntity()
  2. 10 core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityFormDisplay.php \Drupal\migrate\Plugin\migrate\destination\PerComponentEntityFormDisplay::getEntity()
  3. 11.x core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityFormDisplay.php \Drupal\migrate\Plugin\migrate\destination\PerComponentEntityFormDisplay::getEntity()

Overrides ComponentEntityDisplayBase::getEntity

1 method overrides PerComponentEntityFormDisplay::getEntity()
TestPerComponentEntityFormDisplay::getEntity in core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php
Gets the entity.

File

core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityFormDisplay.php, line 51

Class

PerComponentEntityFormDisplay
This class imports one component of an entity form display.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

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

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