You are here

public function LPManagedContent::setMandatory in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/Entity/LPManagedContent.php \Drupal\opigno_learning_path\Entity\LPManagedContent::setMandatory()

Sets TRUE if this content is mandatory to success this learning path.

Parameters

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

Return value

$this

File

src/Entity/LPManagedContent.php, line 184

Class

LPManagedContent
Defines the Learning Path Content entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function setMandatory($is_mandatory) {
  $this
    ->set('is_mandatory', $is_mandatory);
  return $this;
}