public function EntityLegalDocumentAcceptanceForm::setDocument in Entity Legal 4.0.x
Same name and namespace in other branches
- 8.2 src/Form/EntityLegalDocumentAcceptanceForm.php \Drupal\entity_legal\Form\EntityLegalDocumentAcceptanceForm::setDocument()
- 3.0.x src/Form/EntityLegalDocumentAcceptanceForm.php \Drupal\entity_legal\Form\EntityLegalDocumentAcceptanceForm::setDocument()
Sets the legal document.
Parameters
\Drupal\entity_legal\EntityLegalDocumentInterface $document: The legal document.
File
- src/
Form/ EntityLegalDocumentAcceptanceForm.php, line 53
Class
- EntityLegalDocumentAcceptanceForm
- Provides a confirmation form for deleting a custom block entity.
Namespace
Drupal\entity_legal\FormCode
public function setDocument(EntityLegalDocumentInterface $document) {
$this->document = $document;
}