public function StringTranslation::__construct in Service Container 7.2
Same name and namespace in other branches
- 7 src/StringTranslation/StringTranslation.php \Drupal\service_container\StringTranslation\StringTranslation::__construct()
Constructs a new StringTranslation instance.
Parameters
\Drupal\service_container\Legacy\Drupal7 $drupal7: The Drupal7 service.
File
- src/
StringTranslation/ StringTranslation.php, line 33 - Contains \Drupal\service_container\StringTranslation\StringTranslation.
Class
- StringTranslation
- Provides a t() based string translation.
Namespace
Drupal\service_container\StringTranslationCode
public function __construct(Drupal7 $drupal7) {
$this->drupal7 = $drupal7;
}