/** * Constructs a StaticTranslation object. * * @param string $directory * The directory to retrieve file translations from. */ public function __construct($directory) { parent::__construct(); $this->directory = $directory; }
/** * Constructs a CustomStrings object. * * @param \Drupal\Core\Site\Settings $settings * The settings read only object. */ public function __construct(Settings $settings) { parent::__construct(); $this->settings = $settings; }