public static function LPModuleAvailability::loadByProperties in Opigno Learning path 8
Same name and namespace in other branches
- 3.x src/Entity/LPModuleAvailability.php \Drupal\opigno_learning_path\Entity\LPModuleAvailability::loadByProperties()
Loads one or more LPManagedContent by the properties.
The available properties are the entity_keys specified in the header of this LPManagedContent class.
Best is to avoid to use this method and create a specific method for your search, like the method loadByLearningPathId.
File
- src/
Entity/ LPModuleAvailability.php, line 65
Class
- LPModuleAvailability
- The Learning Path Module Availability entity type definition.
Namespace
Drupal\opigno_learning_path\EntityCode
public static function loadByProperties($properties) {
return \Drupal::entityTypeManager()
->getStorage('lp_module_availability')
->loadByProperties($properties);
}