function TestPerComponentEntityDisplay::__construct

Same name and namespace in other branches
  1. 8.9.x core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityDisplay::__construct()
  2. 10 core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityDisplay::__construct()
  3. 11.x core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityDisplay::__construct()

PerComponentEntityDisplay constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository service.

Overrides ComponentEntityDisplayBase::__construct

File

core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php, line 58

Class

TestPerComponentEntityDisplay

Namespace

Drupal\Tests\migrate\Unit\destination

Code

public function __construct($entity) {
    $this->entity = $entity;
}

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