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
|
@ -57,28 +57,28 @@ class XmlEncoder implements EncoderInterface, DecoderInterface {
|
|||
}
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Serializer\Encoder\EncoderInterface::encode().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function encode($data, $format, array $context = array()){
|
||||
return $this->getBaseEncoder()->encode($data, $format, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Serializer\Encoder\JsonEncoder::supportsEncoding().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function supportsEncoding($format) {
|
||||
return in_array($format, static::$format);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Serializer\Encoder\EncoderInterface::decode().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function decode($data, $format, array $context = array()){
|
||||
return $this->getBaseEncoder()->decode($data, $format, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Serializer\Encoder\JsonEncoder::supportsDecoding().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function supportsDecoding($format) {
|
||||
return in_array($format, static::$format);
|
||||
|
|
|
@ -27,7 +27,7 @@ class ComplexDataNormalizer extends NormalizerBase {
|
|||
protected $supportedInterfaceOrClass = 'Drupal\Core\TypedData\ComplexDataInterface';
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function normalize($object, $format = NULL, array $context = array()) {
|
||||
$attributes = array();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\serialization\Normalizer\FileFieldItemNormalizer.
|
||||
* Contains \Drupal\serialization\Normalizer\EntityReferenceFieldItemNormalizer.
|
||||
*/
|
||||
|
||||
namespace Drupal\serialization\Normalizer;
|
||||
|
|
|
@ -26,7 +26,7 @@ class ListNormalizer extends NormalizerBase {
|
|||
protected $supportedInterfaceOrClass = 'Drupal\Core\TypedData\ListInterface';
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function normalize($object, $format = NULL, array $context = array()) {
|
||||
$attributes = array();
|
||||
|
|
|
@ -20,7 +20,7 @@ class TypedDataNormalizer extends NormalizerBase {
|
|||
protected $supportedInterfaceOrClass = 'Drupal\Core\TypedData\TypedDataInterface';
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function normalize($object, $format = NULL, array $context = array()) {
|
||||
return $object->getValue();
|
||||
|
|
|
@ -19,7 +19,7 @@ class SerializationTestEncoder implements EncoderInterface {
|
|||
static protected $format = 'serialization_test';
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Serializer\Encoder\EncoderInterface::encode().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function encode($data, $format, array $context = array()) {
|
||||
// @see \Drupal\serialization_test\SerializationTestNormalizer::normalize().
|
||||
|
@ -27,7 +27,7 @@ class SerializationTestEncoder implements EncoderInterface {
|
|||
}
|
||||
|
||||
/**
|
||||
* Implements \Symfony\Component\Serializer\Encoder\EncoderInterface::supportsEncoding().
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function supportsEncoding($format) {
|
||||
return static::$format === $format;
|
||||
|
|
Reference in a new issue