Resolve #2489476 "Pp 1 base fields"
Closes #2489476
- Fixes compatibility of datetime views filter plugin with base table fields.
- The problem was the use of
FieldAPIHandlerTrait
. Since the only purpose of using the trait was to load field storage definitions, I removed the trait and injectedEntityTypeManager
, then loaded the field storage definitions throughfield_storage_config
.
- The problem was the use of
- Creates datetime views field plugin.
- Not sure why this doesn't already exist. Why would we allow filtering by datetime but not allow displaying a datetime field? Using the
date
views field plugin is not an alternative, because it expects a timestamp. - Is consideration for timezone necessary or will
DrupalDateTime
use the correct timezone?
- Not sure why this doesn't already exist. Why would we allow filtering by datetime but not allow displaying a datetime field? Using the