You are here

public static function LearningPathAccess::getMembershipStatusesArray in Opigno Learning path 8

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

Returns user membership statuses array.

2 calls to LearningPathAccess::getMembershipStatusesArray()
LearningPathAccess::getMembershipStatus in src/LearningPathAccess.php
Returns user membership status.
opigno_learning_path_form_alter in ./opigno_learning_path.module
Implements hook_form_alter().

File

src/LearningPathAccess.php, line 239

Class

LearningPathAccess
Class LearningPathAccess.

Namespace

Drupal\opigno_learning_path

Code

public static function getMembershipStatusesArray() {
  return [
    '1' => t('Active'),
    '2' => t('Pending'),
    '3' => t('Blocked'),
  ];
}