You are here

public function ForwardForm::__construct in Forward 8

Same name in this branch
  1. 8 src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::__construct()
  2. 8 src/Plugin/DsField/ForwardForm.php \Drupal\forward\Plugin\DsField\ForwardForm::__construct()
Same name and namespace in other branches
  1. 8.3 src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::__construct()
  2. 8.2 src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::__construct()
  3. 4.x src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::__construct()
  4. 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\Form

Code

public function __construct(EntityInterface $entity) {
  $this->entity = $entity;
}