Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When updating from an early version of 8.x-1.x, update hook redirect_update_8103()
fails when schema updates are ran.
Proposed resolution
The contents of the YAML file need to be assigned to a variable and passed to Yaml::parse()
Documentation for the Symfony YAML parser
/**
* Parses YAML into a PHP value.
*
* Usage:
* <code>
* $array = Yaml::parse(file_get_contents('config.yml'));
* print_r($array);
* <\/code>
*
* @param string $input A string containing YAML
* @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
*
* @return mixed The YAML converted to a PHP value
*
* @throws ParseException If the YAML is not valid
*/
public static function parse($input, $flags = 0)
{
}
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
Fixes a critical error for redirect_update_8103()
that wasn't properly loading the YAML configuration file.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3033976-3.patch | 1.23 KB | nathandentzau |
|
Comments
Comment #2
nathandentzauComment #3
nathandentzauComment #4
nathandentzauComment #6
BerdirThanks.