You are here

public function TranslationWrapper::getOption in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Core/StringTranslation/TranslationWrapper.php \Drupal\Core\StringTranslation\TranslationWrapper::getOption()

Gets a specific option from this translation wrapper.

Parameters

$name: Option name.

Return value

mixed The value of this option or empty string of option is not set.

File

lib/Drupal/Core/StringTranslation/TranslationWrapper.php, line 80
Contains \Drupal\Core\StringTranslation\TranslationWrapper.

Class

TranslationWrapper
Provides a class to wrap a translatable string.

Namespace

Drupal\Core\StringTranslation

Code

public function getOption($name) {
  return isset($this->options[$name]) ? $this->options[$name] : '';
}