TranslatableMarkup::getOption

public TranslatableMarkup::getOption($name)

Gets a specific option from this translated string.

Parameters

string $name: Option name.

Return value

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

File

core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php, line 167

Class

TranslatableMarkup
Provides translatable markup class.

Namespace

Drupal\Core\StringTranslation

Code

public function getOption($name) {
  return isset($this->options[$name]) ? $this->options[$name] : '';
}
doc_Drupal
2016-10-29 09:49:04
Comments
Leave a Comment

Please login to continue.