function Yaml::decode

Same name in this branch
  1. 10 core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml::decode()
Same name in other branches
  1. 9 core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml::decode()
  2. 8.9.x core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml::decode()
  3. 11.x core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml::decode()
41 calls to Yaml::decode()
AutowireTest::testCoreControllerAutowiring in core/tests/Drupal/KernelTests/Core/DependencyInjection/AutowireTest.php
Tests that core controllers are autowired where possible.
ckeditor5-3222756.php in core/modules/ckeditor5/tests/fixtures/update/ckeditor5-3222756.php
Test fixture.
ckeditor5-3259593.php in core/modules/ckeditor5/tests/fixtures/update/ckeditor5-3259593.php
Test fixture.
ckeditor5-3396628.php in core/modules/ckeditor5/tests/fixtures/update/ckeditor5-3396628.php
Test fixture.
ConfigExportUITest::testExport in core/modules/config/tests/src/Functional/ConfigExportUITest.php
Tests export of configuration.

... See full list

File

core/lib/Drupal/Core/Serialization/Yaml.php, line 15

Class

Yaml
Provides a YAML serialization implementation.

Namespace

Drupal\Core\Serialization

Code

public static function decode($raw) {
    if ($class = Settings::get('yaml_parser_class')) {
        return $class::decode($raw);
    }
    return parent::decode($raw);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.