You are here

public static function LPManagedLink::loadByProperties in Opigno Learning path 8

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

Load one or more LPManagedLink filtered by the properties given in param.

The available properties are the entity_keys specified in the header of this class.

Best is to avoid to use this method and create a specific method for your search, like the method LPManagedContent::loadByLearningPathId.

5 calls to LPManagedLink::loadByProperties()
LearningPathManagerController::removeLink in src/Controller/LearningPathManagerController.php
Removes a link.
LearningPathManagerController::updateLink in src/Controller/LearningPathManagerController.php
Update a link minimum score to go to next step.
LPManagedContent::delete in src/Entity/LPManagedContent.php
Deletes the content from database.
LPManagedContent::getChildrenLinks in src/Entity/LPManagedContent.php
Sets parent links.
LPManagedContent::getParentsLinks in src/Entity/LPManagedContent.php
Returns parent links.

File

src/Entity/LPManagedLink.php, line 216

Class

LPManagedLink
Defines the Learning Path Link entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

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