filterTemplateParameters() public method

Listens to the template.filter_parameters event.
public filterTemplateParameters ( sfEvent $event, array $parameters ) : array
$event sfEvent An sfEvent instance
$parameters array An array of template parameters to filter
return array The filtered parameters array
Beispiel #1
0
 /**
  * Listens to the template.filter_parameters event.
  *
  * @param  sfEvent $event       An sfEvent instance
  * @param  array   $parameters  An array of template parameters to filter
  *
  * @return array   The filtered parameters array
  */
 public function filterTemplateParameters(sfEvent $event, $parameters)
 {
     $parameters = parent::filterTemplateParameters($event, $parameters);
     $parameters['dm_page'] = $this->getPage();
     return $parameters;
 }