Problem/Motivation
Some argument handlers provide their own default argument handling, like the Date argument. The Date argument handler does so by extending the list of of options in the defaultArgumentForm. An exception is however thrown on saving the form.
Steps to reproduce
- Create a new view
/admin/structure/views/add
using (node) content - Under advanced tab, add new Contextual filter, select Created date (
node.created
) - On "When the filter value is not available", select "Provide default value", on the drop-down select "Current date".
- Try to submit this form.
Result: A fatal error occurred on dblog: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "date" plugin does not exist.
Proposed resolution
Get the date handlers in line with the other default argument handlers.
Add a 'Current date', a "Current node's creation time" and "Current node's update time" default argument handler.
Remaining tasks
- Add a follow-up for improving caching - see #114
- Add a follow-up to make this work for all entity-types using a deriver - see #176
- Confirm if this works with date time range fields - see #157
User interface changes
API changes
Data model changes
Release notes snippet
Problem
Steps to reproduce: