function course_get_context in Course 8.2
Same name and namespace in other branches
- 8.3 course.module \course_get_context()
- 6 course.module \course_get_context()
- 7.2 course.module \course_get_context()
- 7 course.module \course_get_context()
- 3.x course.module \course_get_context()
Gets the course context.
Return value
Course The Course context, or NULL.
6 calls to course_get_context()
- CourseEventSubscriber::onRequest in src/
EventSubscriber/ CourseEventSubscriber.php - Check if the current node will fulfill an object.
- CourseNavigationBlock::blockAccess in src/
Plugin/ Block/ CourseNavigationBlock.php - Indicates whether the block should be shown.
- CourseNavigationBlock::build in src/
Plugin/ Block/ CourseNavigationBlock.php - Builds and returns the renderable array for this block plugin.
- CourseOutlineBlock::blockAccess in src/
Plugin/ Block/ CourseOutlineBlock.php - Indicates whether the block should be shown.
- CourseOutlineBlock::build in src/
Plugin/ Block/ CourseOutlineBlock.php - Builds and returns the renderable array for this block plugin.
File
- ./
course.module, line 850 - course.module Core functionality for Courses.
Code
function course_get_context() {
return course_set_context();
}