public function ForwardForm::__construct in Forward 8
Same name in this branch
- 8 src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::__construct()
- 8 src/Plugin/DsField/ForwardForm.php \Drupal\forward\Plugin\DsField\ForwardForm::__construct()
Same name and namespace in other branches
- 8.3 src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::__construct()
- 8.2 src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::__construct()
- 4.x src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::__construct()
- 4.0.x src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::__construct()
Constructs a Forward Form.
Parameters
Drupal\Core\Entity\EntityInterface $entity: The entity being forwarded.
File
- src/
Form/ ForwardForm.php, line 128
Class
- ForwardForm
- Forward a page to a friend
Namespace
Drupal\forward\FormCode
public function __construct(EntityInterface $entity) {
$this->entity = $entity;
}