You are here

public function CourseObject::getReadOnlyOption in Course 3.x

4 calls to CourseObject::getReadOnlyOption()
CourseObject::isEnabled in src/Entity/CourseObject.php
Check if the course object is enabled.
CourseObject::isRequired in src/Entity/CourseObject.php
Is this course object required for course completion?
CourseObject::isSkippable in src/Entity/CourseObject.php
If this course object is required, can be it skipped?
CourseObject::isVisible in src/Entity/CourseObject.php
If this course object is required, can be it skipped?

File

src/Entity/CourseObject.php, line 498

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

public function getReadOnlyOption($key) {
  return $this
    ->getReadOnlyOptions()[$key];
}