You are here

function course_get_context in Course 3.x

Same name and namespace in other branches
  1. 8.3 course.module \course_get_context()
  2. 8.2 course.module \course_get_context()
  3. 6 course.module \course_get_context()
  4. 7.2 course.module \course_get_context()
  5. 7 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.

... See full list

File

./course.module, line 758
course.module Core functionality for Courses.

Code

function course_get_context() {
  return course_set_context();
}