function TokenHooks::__construct

Same name and namespace in other branches
  1. 11.x core/modules/file/src/Hook/TokenHooks.php \Drupal\file\Hook\TokenHooks::__construct()

File

core/modules/file/src/Hook/TokenHooks.php, line 22

Class

TokenHooks
Hook implementations for file tokens.

Namespace

Drupal\file\Hook

Code

public function __construct(protected readonly Token $token, protected readonly DateFormatterInterface $dateFormatter, protected readonly EntityTypeManagerInterface $entityTypeManager) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.