You are here

public static function LPModuleAvailability::loadByProperties in Opigno Learning path 3.x

Same name and namespace in other branches
  1. 8 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\Entity

Code

public static function loadByProperties($properties) {
  return \Drupal::entityTypeManager()
    ->getStorage('lp_module_availability')
    ->loadByProperties($properties);
}