function ComponentEntityDisplayBase::getEntity

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

1 call to ComponentEntityDisplayBase::getEntity()
ComponentEntityDisplayBase::import in core/modules/migrate/src/Plugin/migrate/destination/ComponentEntityDisplayBase.php
Import the row.
3 methods override ComponentEntityDisplayBase::getEntity()
PerComponentEntityDisplay::getEntity in core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityDisplay.php
Gets the entity.
PerComponentEntityFormDisplay::getEntity in core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityFormDisplay.php
Gets the entity.
TestPerComponentEntityDisplay::getEntity in core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php
Gets the entity.

File

core/modules/migrate/src/Plugin/migrate/destination/ComponentEntityDisplayBase.php, line 116

Class

ComponentEntityDisplayBase
Provides a destination plugin for migrating entity display components.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

protected abstract function getEntity($entity_type, $bundle, $mode);

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