public function ExtraFieldFormBase::setEntity in Extra Field 8.2
Stores the field's parent entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity that hosts the field.
Overrides ExtraFieldFormInterface::setEntity
File
- src/
Plugin/ ExtraFieldFormBase.php, line 43
Class
- ExtraFieldFormBase
- Base class for Extra field Form plugins.
Namespace
Drupal\extra_field\PluginCode
public function setEntity(ContentEntityInterface $entity) {
$this->entity = $entity;
}