예제 #1
0
 /**
  * Constructs a StaticTranslation object.
  *
  * @param string $directory
  *   The directory to retrieve file translations from.
  */
 public function __construct($directory)
 {
     parent::__construct();
     $this->directory = $directory;
 }
예제 #2
0
 /**
  * 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;
 }