public function StateTransitionFormInterface::setEntity in State Machine 8
Sets the form entity.
When the form is submitted, a transition will be applied to the entity, and the entity will be saved.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The form entity.
Return value
$this
1 method overrides StateTransitionFormInterface::setEntity()
- StateTransitionForm::setEntity in src/
Form/ StateTransitionForm.php - Sets the form entity.
File
- src/
Form/ StateTransitionFormInterface.php, line 34
Class
- StateTransitionFormInterface
- Defines the interface for state transition forms.
Namespace
Drupal\state_machine\FormCode
public function setEntity(ContentEntityInterface $entity);