formatGroupClass() public static method

Format the groups class.
public static formatGroupClass ( $new, $old ) : mixed
return mixed
Esempio n. 1
0
File: Item.php Progetto: tok3/menus
 public function active($pattern = null)
 {
     if (!is_null($pattern)) {
         $pattern = ltrim(preg_replace('/\\/\\*/', '(/.*)?', $pattern), '/');
         if (preg_match("@^{$pattern}\\z@", Request::path())) {
             $this->activate();
         }
         return $this;
     }
     $this->attributes['class'] = $this->builder->formatGroupClass(['class' => 'active'], $this->attributes);
     return $this;
 }