Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2014 at 22:12 UTC
Updated:
3 Dec 2014 at 15:25 UTC
Jump to comment: Most recent
Comments
Comment #1
marcingy commentedComment #2
berdirLet's see what @plach has to say.
Wondering if fields added like that should really end up on the base table...
The field schema can define indexes, but then you'd have to create your own field type.
We discussed about an alter hook many times and weren't sure if it is a good idea or not, but if we want to, adding it would be easy and possible any time.
Comment #3
plachWell, that's exactly the kind of use case I had in mind for dynamically added base fields. Not sure whether bundle fields would make more sense as scheduling can be enabled per content type, but from the top of my head I see nothing wrong if they end up being base fields.
Anyway I think this is a duplicate of #2258347: Consider adding hook_entity_schema_alter().
Comment #4
plachComment #5
marcingy commentedAh yes indeed that will totally suit what I need, and google failure didn't uncover that issue!