function EntityForm::setEntity
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::setEntity()
- 10 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::setEntity()
- 8.9.x core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::setEntity()
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityForm.php, line 345
Class
- EntityForm
- Base class for entity forms.
Namespace
Drupal\Core\EntityCode
public function setEntity(EntityInterface $entity) {
$this->entity = $entity;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.