style() protected method

protected style ( $style, $value, $attr = [] )
Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 protected function style($style, $value, $attr = [])
 {
     $return = parent::style($style, $value, $attr);
     if ($style == 'str') {
         $map = array_values(static::$controlCharsMap);
         foreach ($map as $current) {
             $return = str_replace($current, '<span class="sf-dump-ctrl">' . $current . '</span>', $return);
         }
     }
     return $return;
 }