private function initializeItemClasses(): void
    {
        if ($this->item['class']) {
            $classes = StringUtil::trimsplit(' ', $this->item['class']);
            foreach ($classes as $class) {
                $this->itemClass[] = $class;
            }

            if (in_array('trail', $this->itemClass)) {
                $this->itemClass[] = 'active';
            }
        }
    }
private function initializeItemClasses(): void
    {
        if ($this->item['class']) {
            $classes = StringUtil::trimsplit(' ', $this->item['class']);
            foreach ($classes as $class) {
                $this->itemClass[] = $class;
            }

            if (in_array('trail', $this->itemClass)) {
                $this->itemClass[] = 'active';
            }
        }
    }
private function initializeItemClasses ( ) : void { if ( $ this -> item [ 'class' ] ) { $ classes = StringUtil :: trimsplit ( ' ' , $ this -> item [ 'class' ] ) ; foreach ( $ classes as $ class ) { $ this -> itemClass [ ] = $ class ; } if ( in_array ( 'trail' , $ this -> itemClass ) ) { $ this -> itemClass [ ] = 'active' ; } } }
Initialize the item classes.

@return void
Initialize the item classes .