Sheath rule
statamic-tag-method-exists
Statamic Blade component tags must call a supported tag method.
#Why
The suffix in a Statamic component tag selects the method that Statamic calls. An unavailable method fails when the tag is dispatched.
#Examples
#Bad
{{-- "definitely_missing" is not a collection tag method. --}}
<s:collection:definitely_missing from="articles" />
#Good
{{-- "count" is a supported collection tag method. --}}
<s:collection:count from="articles" />
The rule also reports core tags such as get_error, section, and yield when
their required method suffix is missing.
#Notes
A suffix is accepted when the registered tag exposes a compatible public method or wildcard handler. Private methods and methods with incompatible required arguments are not callable as tag methods.
#See Also
Related rules validate handles and parameters:
- statamic-tag-exists: Require a registered tag handle
- statamic-required-tag-parameter: Require inputs needed by a supported method
- statamic-fluent-tag-method-exists: Check fluent method suffixes