Update to Drupal 8.0.0-rc3. For more information, see https://www.drupal.org/node/2608078
This commit is contained in:
parent
6419a031d7
commit
4afb23bbd3
762 changed files with 20080 additions and 6368 deletions
|
@ -25,7 +25,7 @@ class DrupalTranslator implements TranslatorInterface {
|
|||
protected $locale;
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Translation\TranslatorInterface::trans().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function trans($id, array $parameters = array(), $domain = NULL, $locale = NULL) {
|
||||
// If a TranslatableMarkup object is passed in as $id, return it since the
|
||||
|
@ -34,7 +34,7 @@ class DrupalTranslator implements TranslatorInterface {
|
|||
}
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Translation\TranslatorInterface::transChoice().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function transChoice($id, $number, array $parameters = array(), $domain = NULL, $locale = NULL) {
|
||||
// Violation messages can separated singular and plural versions by "|".
|
||||
|
@ -58,14 +58,14 @@ class DrupalTranslator implements TranslatorInterface {
|
|||
}
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Translation\TranslatorInterface::setLocale().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function setLocale($locale) {
|
||||
$this->locale = $locale;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Translation\TranslatorInterface::getLocale().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getLocale() {
|
||||
return $this->locale ? $this->locale : \Drupal::languageManager()->getCurrentLanguage()->getId();
|
||||
|
|
|
@ -29,7 +29,7 @@ class LengthConstraint extends Length {
|
|||
public $exactMessage = 'This value should have exactly %limit character.|This value should have exactly %limit characters.';
|
||||
|
||||
/**
|
||||
* Overrides Range::validatedBy().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function validatedBy() {
|
||||
return '\Symfony\Component\Validator\Constraints\LengthValidator';
|
||||
|
|
|
@ -28,7 +28,7 @@ class PrimitiveTypeConstraintValidator extends ConstraintValidator {
|
|||
use TypedDataAwareValidatorTrait;
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Validator\ConstraintValidatorInterface::validate().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function validate($value, Constraint $constraint) {
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ class RangeConstraint extends Range {
|
|||
public $maxMessage = 'This value should be %limit or less.';
|
||||
|
||||
/**
|
||||
* Overrides Range::validatedBy().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function validatedBy() {
|
||||
return '\Symfony\Component\Validator\Constraints\RangeValidator';
|
||||
|
|
|
@ -24,7 +24,7 @@ class RegexConstraint extends Regex {
|
|||
public $message = 'This value is not valid.';
|
||||
|
||||
/**
|
||||
* Overrides Range::validatedBy().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function validatedBy() {
|
||||
return '\Symfony\Component\Validator\Constraints\RegexValidator';
|
||||
|
|
Reference in a new issue