/** * Get if a learning material file path is valid * @param LearningMaterialInterface $lm * * @return boolean */ public function checkLearningMaterialFilePath(LearningMaterialInterface $lm) { $relativePath = $lm->getRelativePath(); $fullPath = $this->getPath($relativePath); return $this->fileSystem->exists($fullPath); }