You are here

protected function Random::getModuleHandler in Geocoder 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Geocoder/Provider/Random.php \Drupal\geocoder\Plugin\Geocoder\Provider\Random::getModuleHandler()

Returns the module handler service.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface Return the module Handler.

1 call to Random::getModuleHandler()
Random::getRandomCountryInfo in src/Plugin/Geocoder/Provider/Random.php
Get Random Country info.

File

src/Plugin/Geocoder/Provider/Random.php, line 131

Class

Random
Class Random.

Namespace

Drupal\geocoder\Plugin\Geocoder\Provider

Code

protected function getModuleHandler() {
  if (!isset($this->moduleHandler)) {
    $this->moduleHandler = \Drupal::moduleHandler();
  }
  return $this->moduleHandler;
}