public function ProfileAccessCheck::__construct in Profile 2 8
Constructs a EntityCreateAccessCheck object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.
File
- src/
Access/ ProfileAccessCheck.php, line 52 - Contains \Drupal\profile\Access\ProfileAccessCheck.
Class
- ProfileAccessCheck
- Checks access to add, edit and delete profiles.
Namespace
Drupal\profile\AccessCode
public function __construct(EntityManagerInterface $entity_manager, RequestStack $requestStack) {
$this->entityManager = $entity_manager;
$this->requestStack = $requestStack;
}