Closed (duplicate)
Project:
Drupal core
Version:
8.4.x-dev
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2017 at 13:04 UTC
Updated:
24 Mar 2017 at 10:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sam152 commentedComment #3
sam152 commentedThis is a possible implementation. It's a bit iffy in the sense it's not driven by an interface, but doing so would require exposing a public method, which I don't think is desirable here.
Comment #4
dawehnerThis sounds interesting! Do you have an plans to let some of the core computed fields extends this class? I guess having a concrete example of this class could be helpful, even if it is just for documentation reasons.
Comment #5
berdirSee #2846554: Make the PathItem field type actually computed and auto-load stored aliases, what I suggested there is to use #2392845: Add a trait to standardize handling of computed item lists for this, the pathauto issue also shows that this is needed on field item list and field item classes, and also the magic methods.
Comment #6
amateescu commentedLet's do this in the existing issue for "fixing" computed fields: #2392845: Add a trait to standardize handling of computed item lists