You are here

public static function OpignoGroupManagerController::mustBeVisitedMeeting in Opigno group manager 8

Same name and namespace in other branches
  1. 3.x src/Controller/OpignoGroupManagerController.php \Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::mustBeVisitedMeeting()

Check if step is required meeting.

Parameters

array $step: Step options.

\Drupal\group\Entity\Group $group: Group object.

Return value

bool

File

src/Controller/OpignoGroupManagerController.php, line 1932

Class

OpignoGroupManagerController
Controller for all the actions of the Opigno group manager app.

Namespace

Drupal\opigno_group_manager\Controller

Code

public static function mustBeVisitedMeeting($step, Group $group) {
  if (self::getGuidedNavigation($group) && $step['typology'] == 'Meeting' && $step['mandatory'] == 1 && empty($step['presence'])) {
    return TRUE;
  }
  return FALSE;
}