Helper/Bootstrap/Addon/Menu.php
public function getMenuAttributes():array
    {
        if ($this->menu !== null) {
            $attrs = [];
            if ($this->menu->getOrientationClass() == 'dropdown') {
                $attrs['id'] = $this->menu->getLabelledBy();
            }
            $attrs['data-toggle']   = 'dropdown';
            $attrs['aria-haspopup'] = 'true';
            $attrs['aria-expanded'] = 'false';
            return $attrs;
        }
        return [];
    }
public function getMenuAttributes():array
    {
        if ($this->menu !== null) {
            $attrs = [];
            if ($this->menu->getOrientationClass() == 'dropdown') {
                $attrs['id'] = $this->menu->getLabelledBy();
            }
            $attrs['data-toggle']   = 'dropdown';
            $attrs['aria-haspopup'] = 'true';
            $attrs['aria-expanded'] = 'false';
            return $attrs;
        }
        return [];
    }
public function getMenuAttributes ( ) : array { if ( $ this -> menu !== null ) { $ attrs = [ ] ; if ( $ this -> menu -> getOrientationClass ( ) == 'dropdown' ) { $ attrs [ 'id' ] = $ this -> menu -> getLabelledBy ( ) ; } $ attrs [ 'data-toggle' ] = 'dropdown' ; $ attrs [ 'aria-haspopup' ] = 'true' ; $ attrs [ 'aria-expanded' ] = 'false' ; return $ attrs ; } return [ ] ; }
Attributes to add to attached element
@return array
Attributes to add to attached element