function FieldItemSerializationTest::providerTestCustomBooleanNormalization
Data provider.
Return value
array Test cases.
File
- 
              core/modules/ hal/ tests/ src/ Kernel/ serialization/ FieldItemSerializationTest.php, line 178 
Class
- FieldItemSerializationTest
- Test field level normalization process.
Namespace
Drupal\Tests\hal\Kernel\serializationCode
public function providerTestCustomBooleanNormalization() {
  return [
    'Format-agnostic @FieldType-level normalizers SHOULD be able to affect the HAL+JSON normalization' => [
      [
        'test_fieldtype_boolean_emoji_normalizer',
      ],
      'hal_json',
    ],
    'Format-agnostic @DataType-level normalizers SHOULD be able to affect the HAL+JSON normalization' => [
      [
        'test_datatype_boolean_emoji_normalizer',
        'hal',
      ],
      'hal_json',
    ],
    'Format-agnostic @DataType-level normalizers SHOULD be able to affect the XML normalization' => [
      [
        'test_datatype_boolean_emoji_normalizer',
        'hal',
      ],
      'xml',
    ],
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
