Problem/Motivation
Calls to t() now return a TranslatableMarkup object rather than a string.
In FeaturesManager::initCorePackage() we generate a feature/package name and description through t(), which when exported to the .info.yml file is raising the error:
Drupal\Component\Serialization\Exception\InvalidDataTypeException: Object support when dumping a YAML file has been disabled. in Drupal\Component\Serialization\Yaml::encode() (line 29 of /var/www/drate/core/lib/Drupal/Component/Serialization/Yaml.php).
Proposed resolution
Cast name and description values to strings in FeaturesManager::initCorePackage().
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | features-cast-t-2580591-2.patch | 626 bytes | nedjo |
Comments
Comment #2
nedjoComment #4
nedjoAdded a code comment and committed.
Comment #7
nedjo