public function ExtraFieldFormInterface::setEntity in Extra Field 8.2
Stores the field's parent entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity that hosts the field.
1 method overrides ExtraFieldFormInterface::setEntity()
- ExtraFieldFormBase::setEntity in src/
Plugin/ ExtraFieldFormBase.php - Stores the field's parent entity.
File
- src/
Plugin/ ExtraFieldFormInterface.php, line 34
Class
- ExtraFieldFormInterface
- Defines an interface for Extra Field Form plugins.
Namespace
Drupal\extra_field\PluginCode
public function setEntity(ContentEntityInterface $entity);