Add extension point in DateArgumentWrapper so custom Views argument handlers can define granularity

Created on 3 September 2025, about 1 month ago

Problem/Motivation

Currently, DateArgumentWrapper::getGranularity() hard-codes its return value by inspecting the plugin ID. This makes it impossible for custom Views argument handlers (like those in contrib or custom modules) to influence the granularity that Calendar uses.

Proposed resolution

Add a lightweight extension point: before falling back to the plugin ID mapping, check whether the underlying handler implements getGranularity(). If it does, delegate to it. This allows custom argument handlers to declare their own granularity cleanly without patching contrib.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024