class ListNormalizer

Converts list objects to arrays.

Ordinarily, this would be handled automatically by Serializer, but since there is a TypedDataNormalizer and the Field class extends TypedData, any Field will be handled by that Normalizer instead of being traversed. This class ensures that TypedData classes that also implement ListInterface are traversed instead of simply returning getValue().

Hierarchy

Expanded class hierarchy of ListNormalizer

1 string reference to 'ListNormalizer'
1 service uses ListNormalizer

File

drupal/core/modules/serialization/lib/Drupal/serialization/Normalizer/ListNormalizer.php, line 21
Contains \Drupal\serialization\Normalizer\ListNormalizer.

Namespace

Drupal\serialization\Normalizer
View source

Members