You are here

function course_get_handlers in Course 8.3

Same name and namespace in other branches
  1. 8.2 course.module \course_get_handlers()
  2. 6 course.module \course_get_handlers()
  3. 7.2 course.module \course_get_handlers()
  4. 7 course.module \course_get_handlers()
  5. 3.x course.module \course_get_handlers()

Get course handlers.

Parameters

string $type: (optional) The course handler type to return. If no type is specified, all types are returned.

Return value

array A merged, structured array of course handlers, optionally limited by type.

array An array of hook implementations keyed by module name, containing:

  • A single handler type definition, if the $type parameter is passed.
  • Or an associative array of all course handler definitions keyed by type.
12 calls to course_get_handlers()
CourseEventSubscriber::onRequest in src/EventSubscriber/CourseEventSubscriber.php
Check if the current node will fulfill an object.
CourseObject::getComponentName in src/Entity/CourseObject.php
Get the object component title for this course object.
CourseObject::getTitle in src/Entity/CourseObject.php
CourseObjectFulfillmentController::create in src/Controller/CourseObjectFulfillmentController.php
Overrides EntityAPIController::create().
CourseObjectFulfillmentStorage::doCreate in src/Storage/CourseObjectFulfillmentStorage.php
Performs storage-specific creation of entities.

... See full list

File

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

Code

function course_get_handlers() {

  /* @var $pluginManager CourseObjectAccessPluginManager */
  $pluginManager = Drupal::service('plugin.manager.course.object');
  $plugins = $pluginManager
    ->getDefinitions();
  return $plugins;
}