Closed (fixed)
Project:
Site Settings and Labels
Version:
8.x-1.8
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2017 at 15:13 UTC
Updated:
5 May 2017 at 07:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mgalgano commentedComment #3
mgalgano commentedI addressed the issue for my purposes specifically by updating SiteSettingsLoader.php. Please consider this, or a similar possibly more robust, modification in a future release.
private function getValues($entity) {
...
// Exclude fields on the object that are base config.
if (!method_exists(get_class($field_definition), 'isBaseField') || !$field_definition->isBaseField()) {
if ($field_definition->getType() == "image") {
$build[$key] = $field;
} else {
if ($value = $field->getValue()) {
...
}
...
}
Comment #4
scott_euser commentedWould the attached patch work for you? As the site settings are heavily cached in one chunk for performance, I would like to avoid storing the entire entity with it.
Comment #5
scott_euser commentedComment #6
scott_euser commentedThis has been added on the dev branch.