public function CourseHandler::getWarnings in Course 3.x
Same name and namespace in other branches
- 8.3 src/Helper/CourseHandler.php \Drupal\course\Helper\CourseHandler::getWarnings()
- 8.2 src/Helper/CourseHandler.php \Drupal\course\Helper\CourseHandler::getWarnings()
Return a list of warning strings about this handler.
For example, if a user adds a quiz to a course with no questions, trigger a message.
4 calls to CourseHandler::getWarnings()
- CourseHandler::getOptionsSummary in src/
Helper/ CourseHandler.php - Get the summary of an object's options.
- CourseObjectNode::getWarnings in modules/
course_content/ src/ Course/ Object/ CourseObjectNode.php - Show a warning if this object has an instance, but the node does not exist.
- CourseObjectQuiz::getWarnings in modules/
course_quiz/ src/ Plugin/ course/ CourseObject/ CourseObjectQuiz.php - Let the user know if they have a Quiz without questions.
- CourseObjectWebform::getWarnings in modules/
course_webform/ src/ Plugin/ course/ CourseObject/ CourseObjectWebform.php - Return a list of warning strings about this handler.
3 methods override CourseHandler::getWarnings()
- CourseObjectNode::getWarnings in modules/
course_content/ src/ Course/ Object/ CourseObjectNode.php - Show a warning if this object has an instance, but the node does not exist.
- CourseObjectQuiz::getWarnings in modules/
course_quiz/ src/ Plugin/ course/ CourseObject/ CourseObjectQuiz.php - Let the user know if they have a Quiz without questions.
- CourseObjectWebform::getWarnings in modules/
course_webform/ src/ Plugin/ course/ CourseObject/ CourseObjectWebform.php - Return a list of warning strings about this handler.
File
- src/
Helper/ CourseHandler.php, line 200
Class
- CourseHandler
- Master class for a course related content entity.
Namespace
Drupal\course\HelperCode
public function getWarnings() {
return array();
}