public function ProfileDeleteForm::__construct in Profile 2 8
Constructs a ProfileDeleteForm object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator.
Overrides ContentEntityForm::__construct
File
- src/
Form/ ProfileDeleteForm.php, line 38 - Contains \Drupal\profile\Form\ProfileDeleteForm.
Class
- ProfileDeleteForm
- Provides a confirmation form for deleting a profile entity.
Namespace
Drupal\profile\FormCode
public function __construct(EntityManagerInterface $entity_manager, UrlGeneratorInterface $url_generator) {
parent::__construct($entity_manager);
$this->urlGenerator = $url_generator;
}