Add extension point in DateArgumentWrapper so custom Views argument handlers can define granularity
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3544516. -->
Reported by: [ramil g](https://www.drupal.org/user/133684)
Related to !68
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>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.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>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.</p>
issue