src/Admin/MultisitesModelAdminExtension.php
private function modelIsMultiSitesAware() {
        $model = $this->getListDataClass();
        // always false if using silverstripe-recipe <= 4.3.0
        if ($model) {
            $isAware = $model::has_extension(MultisitesAware::class);
            $isSiteTree = in_array(SiteTree::class, ClassInfo::ancestry($model));
            return $isAware || $isSiteTree;
        }
        return false;
    }
private function modelIsMultiSitesAware() {
        $model = $this->getListDataClass();
        // always false if using silverstripe-recipe <= 4.3.0
        if ($model) {
            $isAware = $model::has_extension(MultisitesAware::class);
            $isSiteTree = in_array(SiteTree::class, ClassInfo::ancestry($model));
            return $isAware || $isSiteTree;
        }
        return false;
    }
private function modelIsMultiSitesAware ( ) { $ model = $ this -> getListDataClass ( ) ; // always false if using silverstripe-recipe <= 4.3.0 if ( $ model ) { $ isAware = $ model :: has_extension ( MultisitesAware :: class ) ; $ isSiteTree = in_array ( SiteTree :: class , ClassInfo :: ancestry ( $ model ) ) ; return $ isAware || $ isSiteTree ; } return false ; }
Determines whether the current model being managed is MultiSitesAware

@return boolean
Determines whether the current model being managed is MultiSitesAware