Change visibility of the rules constants in TwigValidatorRulePluginBase
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3517321. -->
Reported by: [richardgaunt](https://www.drupal.org/user/3193139)
Related to !9
>>>
<h3 id="summary-problem-motivation">Version</h3>
<ul>
<li>Drupal version: 11.1 </li>
<li>Twig version: 3.19.0</li>
</ul>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>1. I have implemented `hook_twig_validator_rule_info_alter` to change some of the rules being validated<br>
2. I would like to do the following to make the code more visible but the property visibility rules do not allow me to do this:<br>
<code>$info['filter']['rule_on_name'][TwigValidatorRulePluginBase::RULE_NAME_ALLOW][] = 'raw';</code></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>1. Update the RULE_NAME_ALLOW, RULE_NAME_IGNORE, RULE_NAME_FORBIDDEN to public or perhaps move to an ENUM so that they can be used in the alter hook.</p>
issue