Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542

This commit is contained in:
Pantheon Automation 2015-08-27 12:03:05 -07:00 committed by Greg Anderson
parent 3b2511d96d
commit 81ccda77eb
2155 changed files with 54307 additions and 46870 deletions

View file

@ -7,6 +7,8 @@
namespace Drupal\Core\StringTranslation;
use Drupal\Component\Utility\SafeStringInterface;
/**
* Provides a class to wrap a translatable string.
*
@ -16,7 +18,7 @@ namespace Drupal\Core\StringTranslation;
*
* @see \Drupal\Core\Annotation\Translation
*/
class TranslationWrapper {
class TranslationWrapper implements SafeStringInterface {
use StringTranslationTrait;
/**
@ -82,6 +84,16 @@ class TranslationWrapper {
return isset($this->options[$name]) ? $this->options[$name] : '';
}
/**
* Gets all options from this translation wrapper.
*
* @return mixed[]
* The array of options.
*/
public function getOptions() {
return $this->options;
}
/**
* Implements the magic __toString() method.
*/