class TestPerComponentEntityFormDisplay
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityFormDisplay
- 8.9.x core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityFormDisplay
- 11.x core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityFormDisplay
Hierarchy
- class \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityFormDisplay extends \Drupal\migrate\Plugin\migrate\destination\PerComponentEntityFormDisplay
Expanded class hierarchy of TestPerComponentEntityFormDisplay
File
-
core/
modules/ migrate/ tests/ src/ Unit/ destination/ PerComponentEntityFormDisplayTest.php, line 50
Namespace
Drupal\Tests\migrate\Unit\destinationView source
class TestPerComponentEntityFormDisplay extends PerComponentEntityFormDisplay {
const MODE_NAME = 'form_mode';
protected $testValues;
protected $entity;
public function __construct($entity) {
$this->entity = $entity;
}
protected function getEntity($entity_type, $bundle, $form_mode) {
$this->testValues = func_get_args();
return $this->entity;
}
public function getTestValues() {
return $this->testValues;
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.