NavModule::__construct PHP Method

__construct() public method

public __construct ( string $cssClass = '', boolean $useCssPrefix = true )
$cssClass string A potential CSS class of the dropdown menu wrapper container.
$useCssPrefix boolean Whether to use CSS prefixes on the nav items.
    public function __construct($cssClass = '', $useCssPrefix = true)
    {
        parent::__construct();
        $this->flatten = false;
        $this->useCssPrefix = $useCssPrefix;
        $this->cssClass = $cssClass;
        if ($useCssPrefix) {
            $this->headerCssClassPrefix = 'nav-header';
            $this->linkCssClassPrefix = 'nav-link';
            $this->dropdownCssClassPrefix = 'nav-dropdown';
            $this->dividerCssClassPrefix = 'divider';
        }
    }