You are here

public function OpignoGroupManagedContent::setMandatory 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::setMandatory()

Sets mandatory flag.

Parameters

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

Return value

$this

File

src/Entity/OpignoGroupManagedContent.php, line 244

Class

OpignoGroupManagedContent
Defines the Opigno Group Content entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

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