Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
|
@ -8,7 +8,7 @@
|
|||
namespace Drupal\Core\Annotation;
|
||||
|
||||
use Drupal\Component\Annotation\Plugin;
|
||||
use Drupal\Core\StringTranslation\TranslationWrapper;
|
||||
use Drupal\Core\StringTranslation\TranslatableMarkup;
|
||||
|
||||
/**
|
||||
* @defgroup plugin_context Annotation for context definition
|
||||
|
@ -113,7 +113,7 @@ class ContextDefinition extends Plugin {
|
|||
// used in the classes they pass to.
|
||||
foreach (['label', 'description'] as $key) {
|
||||
// @todo Remove this workaround in https://www.drupal.org/node/2362727.
|
||||
if (isset($values[$key]) && $values[$key] instanceof TranslationWrapper) {
|
||||
if (isset($values[$key]) && $values[$key] instanceof TranslatableMarkup) {
|
||||
$values[$key] = (string) $values[$key]->get();
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
namespace Drupal\Core\Annotation;
|
||||
|
||||
use Drupal\Component\Annotation\AnnotationBase;
|
||||
use Drupal\Core\StringTranslation\TranslationWrapper;
|
||||
use Drupal\Core\StringTranslation\TranslatableMarkup;
|
||||
|
||||
/**
|
||||
* @defgroup plugin_translatable Annotation for translatable text
|
||||
|
@ -60,7 +60,7 @@ class Translation extends AnnotationBase {
|
|||
/**
|
||||
* The string translation object.
|
||||
*
|
||||
* @var \Drupal\Core\StringTranslation\TranslationWrapper
|
||||
* @var \Drupal\Core\StringTranslation\TranslatableMarkup
|
||||
*/
|
||||
protected $translation;
|
||||
|
||||
|
@ -86,7 +86,7 @@ class Translation extends AnnotationBase {
|
|||
'context' => $values['context'],
|
||||
);
|
||||
}
|
||||
$this->translation = new TranslationWrapper($string, $arguments, $options);
|
||||
$this->translation = new TranslatableMarkup($string, $arguments, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue