You are here

public function CourseObject::isRequired in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::isRequired()
  2. 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::isRequired()

Is this course object required for course completion?

Return value

bool

File

src/Entity/CourseObject.php, line 618

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

public function isRequired() {
  return (bool) $this
    ->getReadOnlyOption('required');
}