You are here

public function ApStyleDateFormatter::__construct in AP Style Date 8

Constructor.

Parameters

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Config\ConfigFactory $configFactory: Access config objects.

File

src/ApStyleDateFormatter.php, line 39

Class

ApStyleDateFormatter
Services for formatting date types using AP Style Date rules.

Namespace

Drupal\date_ap_style

Code

public function __construct(LanguageManagerInterface $language_manager, ConfigFactory $configFactory) {
  $this->languageManager = $language_manager;
  $this->config = $configFactory
    ->get('date_ap_style.dateapstylesettings');
}