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] : ''; }
Please login to continue.