public function FormAlterHelper::__construct in Workbench Access 8
Constructs a new FormAlterHelper object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.
\Drupal\Core\Session\AccountInterface $currentUser: Current user.
File
- src/
FormAlterHelper.php, line 39
Class
- FormAlterHelper
- Defines a helper for altering content edit forms.
Namespace
Drupal\workbench_accessCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, AccountInterface $currentUser) {
$this->entityTypeManager = $entityTypeManager;
$this->currentUser = $currentUser;
}