You are here

protected function ExampleController::checkTokenModule in HTTP Client Manager 8.2

Check Token module.

2 calls to ExampleController::checkTokenModule()
ExampleController::createPost in modules/http_client_manager_example/src/Controller/ExampleController.php
Create post.
ExampleController::createPostAdvanced in modules/http_client_manager_example/src/Controller/ExampleController.php
Create post - Advanced usage.

File

modules/http_client_manager_example/src/Controller/ExampleController.php, line 207

Class

ExampleController
Class ExampleController.

Namespace

Drupal\http_client_manager_example\Controller

Code

protected function checkTokenModule() {
  if (!$this
    ->moduleHandler()
    ->moduleExists('token')) {
    $message = $this
      ->t('Install the Token module in order to use tokens inside your HTTP Config Requests.');
    \Drupal::messenger()
      ->addWarning($message);
  }
}