Back to RouterView class

Method attachRules

public void
attachRules
(mixed $rules)
Add a number of router rules to the object
Parameters
  • \Joomla\CMS\Component\Router\Rules\RulesInterface[] $rules Array of JComponentRouterRulesInterface objects
Returns
  • void
Since
  • 3.5
Class: RouterView
Project: Joomla

Method attachRules - Source code

/**
 * Add a number of router rules to the object
 *
 * @param   RulesInterface[]  $rules  Array of JComponentRouterRulesInterface objects
 *
 * @return  void
 *
 * @since   3.5
 */
public function attachRules($rules)
{
    foreach ($rules as $rule) {
        $this->attachRule($rule);
    }
}