CaptureOnContentForBlock
Identifies the usage of content_for "block"
inside the capture
tag, as it's restricted to enforce static block rendering at its expected location.
The following examples contain code snippets that either fail or pass this check.
In the following example, the content_for "block"
tag is used inside of the capture
tag:
In the following example, the content_for "block"
tag is outside the capture
tag, rendering content as expected:
The following example contains the default configuration for this check:
Parameter | Description |
---|---|
enabled |
Whether this check is enabled. |
severity |
The severity of the check. |
Disabling this check
Anchor link to section titled "Disabling this check"Disabling this check isn't recommended.