function TestPerComponentEntityDisplay::getEntity

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

Overrides ComponentEntityDisplayBase::getEntity

File

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

Class

TestPerComponentEntityDisplay

Namespace

Drupal\Tests\migrate\Unit\destination

Code

protected function getEntity($entity_type, $bundle, $view_mode) {
    $this->testValues = func_get_args();
    return $this->entity;
}

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