Sheath rule
statamic-fluent-tag-method-exists
Executed literal Statamic fluent calls must request a supported tag method.
#Why
The suffix in a fluent tag name selects the method Statamic dispatches. An unsupported method fails when the fluent object is consumed.
#Examples
#Bad
{{-- definitely_missing_method is not available on collection. --}}
{{ Statamic::tag('collection:definitely_missing_method') }}
#Good
{{-- count is a supported collection method. --}}
{{ Statamic::tag('collection:count')->from('articles') }}
#Notes
Only executed literal calls are checked. Dynamic names and builders that are never fetched, rendered, read, or iterated are skipped.
A suffix is accepted when the registered tag exposes a compatible public method or wildcard handler.
#See Also
Related fluent rules validate handles and inputs:
- statamic-fluent-tag-exists: Require a registered handle
- statamic-fluent-required-parameters: Require method inputs
- statamic-tag-method-exists: Check component method suffixes