public function TaskManager::__construct in General Data Protection Regulation 8.2
Same name and namespace in other branches
- 8 modules/gdpr_tasks/src/TaskManager.php \Drupal\gdpr_tasks\TaskManager::__construct()
- 3.0.x modules/gdpr_tasks/src/TaskManager.php \Drupal\gdpr_tasks\TaskManager::__construct()
Constructs a TaskManager object.
Parameters
\Drupal\Core\Entity\EntityTypeManager $entityTypeManager: The entity type manager.
\Drupal\Core\Session\AccountProxy $currentUser: The current user service.
\Drupal\Core\File\FileSystemInterface $fileSystem: Filesystem.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- modules/
gdpr_tasks/ src/ TaskManager.php, line 56
Class
- TaskManager
- Defines a helper class for stuff related to views data.
Namespace
Drupal\gdpr_tasksCode
public function __construct(EntityTypeManager $entityTypeManager, AccountProxy $currentUser, FileSystemInterface $fileSystem) {
$this->entityTypeManager = $entityTypeManager;
$this->taskStorage = $entityTypeManager
->getStorage('gdpr_task');
$this->currentUser = $currentUser;
$this->fileSystem = $fileSystem;
}