public static function nameFilter(AppMenuItem $item)
 {
     if ($item->getId() != 'new' && $item->getId() != 'manager') {
         $item->setName(htmlspecialchars($item->getName(), ENT_QUOTES, 'UTF-8'));
     }
 }
Exemple #2
0
 /**
  * Filter: Menu item names corrector
  * @param AppMenuItem $item
  */
 public static function filterNames(AppMenuItem $item)
 {
     if (!(in_array($item->getId(), array('new', 'manager')) || strpos($item->getId(), 'jb') === 0)) {
         $item->setName(htmlspecialchars($item->getName(), ENT_QUOTES, 'UTF-8'));
     }
 }