function CustomStrings::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php \Drupal\Core\StringTranslation\Translator\CustomStrings::__construct()
  2. 8.9.x core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php \Drupal\Core\StringTranslation\Translator\CustomStrings::__construct()
  3. 10 core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php \Drupal\Core\StringTranslation\Translator\CustomStrings::__construct()

Constructs a CustomStrings object.

Parameters

\Drupal\Core\Site\Settings $settings: The settings read only object.

Overrides StaticTranslation::__construct

File

core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php, line 31

Class

CustomStrings
String translator using overrides from variables.

Namespace

Drupal\Core\StringTranslation\Translator

Code

public function __construct(Settings $settings) {
    parent::__construct();
    $this->settings = $settings;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.