public function UserRevisionAccessCheck::__construct in User Revision 8
UserRevisionAccessCheck constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- src/
Access/ UserRevisionAccessCheck.php, line 46
Class
- UserRevisionAccessCheck
- Provides an access checker for user revisions.
Namespace
Drupal\user_revision\AccessCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->userStorage = $entity_type_manager
->getStorage('user');
}