You are here

public function CourseHandler::getOption in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Helper/CourseHandler.php \Drupal\course\Helper\CourseHandler::getOption()
  2. 8.2 src/Helper/CourseHandler.php \Drupal\course\Helper\CourseHandler::getOption()

Get an handler option's value.

Return value

mixed

27 calls to CourseHandler::getOption()
CourseObject::getComponent in src/Entity/CourseObject.php
Get the object component for this course object.
CourseObject::getInstanceId in src/Entity/CourseObject.php
Get the instance ID. This could be the external component ID, a Node ID...
CourseObject::getTitle in src/Entity/CourseObject.php
CourseObject::save in src/Entity/CourseObject.php
Apply configuration from session and let objects create their instances before saving the course object.
CourseObjectAttendance::access in modules/course_attendance/src/Plugin/course/CourseObject/CourseObjectAttendance.php
Response to "attendance" operations to check attendance window access.

... See full list

File

src/Helper/CourseHandler.php, line 72

Class

CourseHandler
Master class for a course related content entity.

Namespace

Drupal\course\Helper

Code

public function getOption($key) {
  $options = $this
    ->getOptions();
  if (isset($options[$key])) {
    return $options[$key];
  }
  else {
    return NULL;
  }
}