You are here

protected function PerComponentEntityFormDisplay::getEntity in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityFormDisplay.php \Drupal\migrate\Plugin\migrate\destination\PerComponentEntityFormDisplay::getEntity()

Get 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

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

File

core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityFormDisplay.php, line 24
Contains \Drupal\migrate\Plugin\migrate\destination\PerComponentEntityFormDisplay.

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 entity_get_form_display($entity_type, $bundle, $form_mode);
}