You are here

public function MobileNumberUtil::__construct in Mobile Number 8

Same name and namespace in other branches
  1. 2.0.x src/MobileNumberUtil.php \Drupal\mobile_number\MobileNumberUtil::__construct()

MobileNumberUtil constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.

\Drupal\Core\Flood\FloodInterface $flood: Flood manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $field_manager: Field manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler.

\Drupal\Core\Locale\CountryManagerInterface $country_manager: Country manager.

\Drupal\Core\Utility\Token $token: Token service.

File

src/MobileNumberUtil.php, line 88

Class

MobileNumberUtil
Turns a render array into a HTML string.

Namespace

Drupal\mobile_number

Code

public function __construct(ConfigFactoryInterface $config_factory, FloodInterface $flood, EntityFieldManagerInterface $field_manager, ModuleHandlerInterface $module_handler, CountryManagerInterface $country_manager, Token $token) {
  $this->libUtil = PhoneNumberUtil::getInstance();
  $this->moduleHandler = $module_handler;
  $this->flood = $flood;
  $this->configFactory = $config_factory;
  $this->countryManager = $country_manager;
  $this->fieldMananger = $field_manager;
  $this->token = $token;
}