filter() public method

Add a filter to Twig
public filter ( string $name, callable $func = null ) : self
$name string - Name to access n Twig
$func callable - function to apply
return self
Ejemplo n.º 1
0
 /**
  * Add a filter to the lens
  *
  * @param string $name
  * @param callable $func
  */
 protected function addLensFilter(string $name, callable $func)
 {
     $this->airship_lens_object->filter($name, $func);
 }