public function actionLastUpdates()
    {
        return NavItem::find()
            ->select(['cms_nav_item.title', 'timestamp_update', 'update_user_id', 'nav_id'])
            ->limit(10)
            ->orderBy(['timestamp_update' => SORT_DESC])
            ->joinWith(['updateUser' => function ($q) {
                $q->select(['firstname', 'lastname', 'id'])->where([]);
            }, 'nav'])
            ->where(['cms_nav.is_deleted' => false])
            ->asArray(true)
            ->all();
    }
public function actionLastUpdates()
    {
        return NavItem::find()
            ->select(['cms_nav_item.title', 'timestamp_update', 'update_user_id', 'nav_id'])
            ->limit(10)
            ->orderBy(['timestamp_update' => SORT_DESC])
            ->joinWith(['updateUser' => function ($q) {
                $q->select(['firstname', 'lastname', 'id'])->where([]);
            }, 'nav'])
            ->where(['cms_nav.is_deleted' => false])
            ->asArray(true)
            ->all();
    }
public function actionLastUpdates ( ) { return NavItem :: find ( ) -> select ( [ 'cms_nav_item.title' , 'timestamp_update' , 'update_user_id' , 'nav_id' ] ) -> limit ( 10 ) -> orderBy ( [ 'timestamp_update' => SORT_DESC ] ) -> joinWith ( [ 'updateUser' => function ( $ q ) { $ q -> select ( [ 'firstname' , 'lastname' , 'id' ] ) -> where ( [ ] ) ; } , 'nav' ] ) -> where ( [ 'cms_nav.is_deleted' => false ] ) -> asArray ( true ) -> all ( ) ; }
Returns an array of 10 items for last updated pages.

@return array
Returns an array of 10 items for last updated pages .