Back to RouterView class

Method attachRule

public void
attachRule
(\Joomla\CMS\Component\Router\Rules\RulesInterface $rule)
Attach a build rule
Parameters
  • \Joomla\CMS\Component\Router\Rules\RulesInterface $rule The function to be called.
Returns
  • void
Since
  • 3.5
Class: RouterView
Project: Joomla

Method attachRule - Source code

/**
 * Attach a build rule
 *
 * @param   RulesInterface  $rule  The function to be called.
 *
 * @return  void
 *
 * @since   3.5
 */
public function attachRule(RulesInterface $rule)
{
    $this->rules[] = $rule;
}