plugin/exo/Manager/ExerciseManager.php
public function isDeletable(Exercise $exercise)
    {
        return !$exercise->getResourceNode()->isPublished() || 0 === $this->paperManager->countExercisePapers($exercise);
    }
public function isDeletable(Exercise $exercise)
    {
        return !$exercise->getResourceNode()->isPublished() || 0 === $this->paperManager->countExercisePapers($exercise);
    }
public function isDeletable ( Exercise $ exercise ) { return ! $ exercise -> getResourceNode ( ) -> isPublished ( ) || 0 === $ this -> paperManager -> countExercisePapers ( $ exercise ) ; }
Checks if an Exercise can be deleted.
The exercise needs to be unpublished or have no paper to be safely removed.

@param Exercise $exercise

@return bool
Checks if an Exercise can be deleted . The exercise needs to be unpublished or have no paper to be safely removed .