public static function LPStatus::isCertificateExpireSet in Opigno Learning path 3.x
Same name and namespace in other branches
- 8 src/Entity/LPStatus.php \Drupal\opigno_learning_path\Entity\LPStatus::isCertificateExpireSet()
Gets training certificate expiration flag.
Parameters
\Drupal\group\Entity\Group $group: Group object.
Return value
bool True if training certificate expiration set, false otherwise.
5 calls to LPStatus::isCertificateExpireSet()
- LPStatus::getCertificateExpireTimestamp in src/
Entity/ LPStatus.php - Returns training certificate expire timestamp.
- LPStatus::getTrainingStartDate in src/
Entity/ LPStatus.php - Returns training start date for displaying statistics.
- Progress::buildSummary in src/
Progress.php - Progress::getProgressBuildAchievementsPage in src/
Progress.php - Get get progress for achievements page.
- Progress::getProgressBuildGroupPage in src/
Progress.php - Get get progress for group page.
File
- src/
Entity/ LPStatus.php, line 247
Class
- LPStatus
- Defines the User Learning Path attempt status entity.
Namespace
Drupal\opigno_learning_path\EntityCode
public static function isCertificateExpireSet(Group $group) : bool {
return (bool) $group
->get('field_certificate_expire')
->getString();
}