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.
Follow-up to: #1849480: Allow ConfigEntity classes to control how they are saved
Problem
EntityInterface::getExportProperties()
contains "export" and "export" is a veeery ambiguous term, at least within the config entity space.
Goal
- Find a method name that does not conflict with other import/export concepts.
Details
- "export" and "import" carry some (too) huge meaning.
- "serialize" and "normalize" come closest, but are taken by new REST stuff already.
getExportProperties()
itself is barely different from the pre-existinggetProperties()
method.
Comments
Comment #1
tim.plunkettSo, getProperties() implies you'd return an array of properties, like
But the return of this includes the built values as well. So maybe not properties at all?
Also, as the person who named getExportProperties() (with not much real thought behind it) I'm +1 to renaming it.
Comment #2
yched CreditAttribution: yched commentedgetStoredProperties() ? getStoredValues() ?
Comment #2.0
yched CreditAttribution: yched commentedUpdated issue summary.
Comment #3
BerdirtoArray() happened :)