public function SocialPostEntityDeleteForm::__construct in Social Post 8.2
Same name and namespace in other branches
- 3.x src/Form/SocialPostEntityDeleteForm.php \Drupal\social_post\Form\SocialPostEntityDeleteForm::__construct()
SocialPostUserEntityDeleteForm constructor.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Routing\CurrentRouteMatch $route_match: The current route match.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
Overrides ContentEntityForm::__construct
File
- src/
Form/ SocialPostEntityDeleteForm.php, line 58
Class
- SocialPostEntityDeleteForm
- Provides a form for deleting Social Post user entities.
Namespace
Drupal\social_post\FormCode
public function __construct(EntityManagerInterface $entity_manager, CurrentRouteMatch $route_match, MessengerInterface $messenger) {
parent::__construct($entity_manager);
$this->routeMatch = $route_match;
$this->messenger = $messenger;
$this->uid = $this->routeMatch
->getParameter('user');
$this->provider = $this->routeMatch
->getParameter('provider');
}