You are here

public function OpignoGroupManagedContent::isMandatory in Opigno group manager 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoGroupManagedContent.php \Drupal\opigno_group_manager\Entity\OpignoGroupManagedContent::isMandatory()

Returns mandatory flag.

Return value

bool TRUE if this content is mandatory to success this learning path. FALSE otherwise.

1 call to OpignoGroupManagedContent::isMandatory()
OpignoGroupManagedContent::getNextStep in src/Entity/OpignoGroupManagedContent.php
Get the next LPManagedContent object according to the user score.

File

src/Entity/OpignoGroupManagedContent.php, line 206

Class

OpignoGroupManagedContent
Defines the Opigno Group Content entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

public function isMandatory() {
  return $this
    ->get('is_mandatory')->value;
}