class TestPerComponentEntityFormDisplay extends PerComponentEntityFormDisplay {
const MODE_NAME = 'form_mode';
protected $testValues;
+
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;
}