protected static function Views::t in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/views/src/Views.php \Drupal\views\Views::t()
Translates a string to the current language or to a given language.
See the t() documentation for details.
1 call to Views::t()
- Views::getHandlerTypes in core/
modules/ views/ src/ Views.php - Provide a list of views handler types used in a view, with some information about them.
File
- core/
modules/ views/ src/ Views.php, line 530 - Contains \Drupal\views\Views.
Class
- Views
- Static service container wrapper for views.
Namespace
Drupal\viewsCode
protected static function t($string, array $args = array(), array $options = array()) {
if (empty(static::$translationManager)) {
static::$translationManager = \Drupal::service('string_translation');
}
return static::$translationManager
->translate($string, $args, $options);
}