public function LPModuleAvailability::getAvailability in Opigno Learning path 8
Same name and namespace in other branches
- 3.x src/Entity/LPModuleAvailability.php \Drupal\opigno_learning_path\Entity\LPModuleAvailability::getAvailability()
Get training module availability restrict to training flag.
File
- src/
Entity/ LPModuleAvailability.php, line 72
Class
- LPModuleAvailability
- The Learning Path Module Availability entity type definition.
Namespace
Drupal\opigno_learning_path\EntityCode
public function getAvailability() {
$availability = $this
->get('availability')->value;
return isset($availability) ? $availability : 0;
}