You are here

function course_get_handlers in Course 3.x

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

Get course object handlers.

Return value

array

10 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
CourseObjectFulfillmentStorage::doCreate in src/Storage/CourseObjectFulfillmentStorage.php
Performs storage-specific creation of entities.
CourseObjectFulfillmentStorage::mapFromStorageRecords in src/Storage/CourseObjectFulfillmentStorage.php
When loading from the database, map any object to its respective class.

... See full list

File

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

Code

function course_get_handlers() {

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