src/Admin/MultisitesModelAdminExtension.php
public function checkMultisitesAware() {
        // only true if using silverstripe-recipe <= 4.3.0
        if (!$this->owner->hasMethod('getModelClass')) {
            $models = $this->owner->getManagedModels();
            // throw error if any models use MultisitesAware extension
            foreach ($models as $model => $val) {
                if($model::has_extension(MultisitesAware::class)) {
                    throw new \Exception(
                        '`ModelAdmin::getModelClass()` missing. You are likely using `silverstripe-recipe:4.3.0` which introduced this bug. This can be fixed by updating to `silverstripe-recipe:4.3.1` or greater.'
                    );
                }
            }
        }
    }
public function checkMultisitesAware() {
        // only true if using silverstripe-recipe <= 4.3.0
        if (!$this->owner->hasMethod('getModelClass')) {
            $models = $this->owner->getManagedModels();
            // throw error if any models use MultisitesAware extension
            foreach ($models as $model => $val) {
                if($model::has_extension(MultisitesAware::class)) {
                    throw new \Exception(
                        '`ModelAdmin::getModelClass()` missing. You are likely using `silverstripe-recipe:4.3.0` which introduced this bug. This can be fixed by updating to `silverstripe-recipe:4.3.1` or greater.'
                    );
                }
            }
        }
    }
public function checkMultisitesAware ( ) { // only true if using silverstripe-recipe <= 4.3.0 if ( ! $ this -> owner -> hasMethod ( 'getModelClass' ) ) { $ models = $ this -> owner -> getManagedModels ( ) ; // throw error if any models use MultisitesAware extension foreach ( $ models as $ model => $ val ) { if ( $ model :: has_extension ( MultisitesAware :: class ) ) { throw new \ Exception ( '`ModelAdmin::getModelClass()` missing. You are likely using `silverstripe-recipe:4.3.0` which introduced this bug. This can be fixed by updating to `silverstripe-recipe:4.3.1` or greater.' ) ; } } } }
Prevents use of MultisitesAware extension when using
silvestripe-recipe <= 4.3.0

@return void
Prevents use of MultisitesAware extension when using silvestripe - recipe < = 4 . 3 . 0