public function TokenCustomController::__construct in Custom Tokens 8
Constructs a TokenCustom object.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $token_custom_storage: The custom token storage.
\Drupal\Core\Entity\EntityStorageInterface $token_custom_type_storage: The custom token type storage.
File
- src/
Controller/ TokenCustomController.php, line 51
Class
- TokenCustomController
- Controller for token_custom entity.
Namespace
Drupal\token_custom\ControllerCode
public function __construct(EntityStorageInterface $token_custom_storage, EntityStorageInterface $token_custom_type_storage) {
$this->tokenCustomStorage = $token_custom_storage;
$this->tokenCustomTypeStorage = $token_custom_type_storage;
}