src/Admin/MultisitesModelAdminExtension.php
private function getListDataClass() {
        /**
         * Silverstripe-recipe 4.3.0 introduces changes that broke the
         * previous approach to retrieving the model class.
         *
         * This is/will be fixed in silverstripe-recipe 4.3.1
         *
         * We've taken this approach so that Multisites can work with
         * SS 4.3.0 so long as you don't use the MultisitesAware extension.
         */
        if ($this->listDataClass === null) {
            // only true if silverstripe-recipe > 4.3.0
            if ($this->owner->hasMethod('getModelClass')) {
                $this->listDataClass = $this->owner->getModelClass();
            }
            // else false to bypass the MultisitesAware extension
            else {
                $this->listDataClass = false;
            }
        }
        return $this->listDataClass;
    }
private function getListDataClass() {
        /**
         * Silverstripe-recipe 4.3.0 introduces changes that broke the
         * previous approach to retrieving the model class.
         *
         * This is/will be fixed in silverstripe-recipe 4.3.1
         *
         * We've taken this approach so that Multisites can work with
         * SS 4.3.0 so long as you don't use the MultisitesAware extension.
         */
        if ($this->listDataClass === null) {
            // only true if silverstripe-recipe > 4.3.0
            if ($this->owner->hasMethod('getModelClass')) {
                $this->listDataClass = $this->owner->getModelClass();
            }
            // else false to bypass the MultisitesAware extension
            else {
                $this->listDataClass = false;
            }
        }
        return $this->listDataClass;
    }
private function getListDataClass ( ) { /**
         * Silverstripe-recipe 4.3.0 introduces changes that broke the
         * previous approach to retrieving the model class.
         *
         * This is/will be fixed in silverstripe-recipe 4.3.1
         *
         * We've taken this approach so that Multisites can work with
         * SS 4.3.0 so long as you don't use the MultisitesAware extension.
         */ if ( $ this -> listDataClass === null ) { // only true if silverstripe-recipe > 4.3.0 if ( $ this -> owner -> hasMethod ( 'getModelClass' ) ) { $ this -> listDataClass = $ this -> owner -> getModelClass ( ) ; } // else false to bypass the MultisitesAware extension else { $ this -> listDataClass = false ; } } return $ this -> listDataClass ; }
Get and cache an instance of the data class currently being listed

@return DataObject
Get and cache an instance of the data class currently being listed