Yii2 - navbar dropdown menu

echo Nav::widget([
    'items' => [
        [
            'label' => 'Profile', 'items' =>
            [
                ['label' => 'Friends', 'url' => ['/user/friends']],
                ['label' => 'Settings', 'url' => ['/user/settings']]
            ]
        ],
    ],
]);