src/Security/InheritedPermissions.php
protected function isVersioned()
    {
        if (!class_exists(Versioned::class)) {
            return false;
        }
        /** @var Versioned|DataObject $singleton */
        $singleton = DataObject::singleton($this->getBaseClass());
        return $singleton->hasExtension(Versioned::class) && $singleton->hasStages();
    }
protected function isVersioned()
    {
        if (!class_exists(Versioned::class)) {
            return false;
        }
        /** @var Versioned|DataObject $singleton */
        $singleton = DataObject::singleton($this->getBaseClass());
        return $singleton->hasExtension(Versioned::class) && $singleton->hasStages();
    }
protected function isVersioned ( ) { if ( ! class_exists ( Versioned :: class ) ) { return false ; } /** @var Versioned|DataObject $singleton */ $ singleton = DataObject :: singleton ( $ this -> getBaseClass ( ) ) ; return $ singleton -> hasExtension ( Versioned :: class ) && $ singleton -> hasStages ( ) ; }
Check if this model has versioning

@return bool
Check if this model has versioning