public static function OpignoGroupManagedContent::loadByProperties in Opigno group manager 8
Same name and namespace in other branches
- 3.x src/Entity/OpignoGroupManagedContent.php \Drupal\opigno_group_manager\Entity\OpignoGroupManagedContent::loadByProperties()
Load one or more LPManagedContent filtered 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.
Parameters
array $properties: The properties to search for.
Return value
\Drupal\Core\Entity\EntityInterface[]|self[] LPManagedContent objects.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
See also
LPManagedContent::loadByLearningPathId()
9 calls to OpignoGroupManagedContent::loadByProperties()
- OpignoGroupManagedContent::loadByGroupId in src/
Entity/ OpignoGroupManagedContent.php - Load the contents linked to a specific group.
- OpignoGroupManagerController::ajaxFormEntityCallback in src/
Controller/ OpignoGroupManagerController.php - Form ajax callback.
- OpignoGroupManagerController::ajaxFormEntityFormSubmit in src/
Controller/ OpignoGroupManagerController.php - Submit handler added by opigno_learning_path_form_alter().
- OpignoGroupManagerController::courseDuplicate in src/
Controller/ OpignoGroupManagerController.php - Duplicate course.
- OpignoGroupManagerController::courseExport in src/
Controller/ OpignoGroupManagerController.php - Export course.
File
- src/
Entity/ OpignoGroupManagedContent.php, line 416
Class
- OpignoGroupManagedContent
- Defines the Opigno Group Content entity.
Namespace
Drupal\opigno_group_manager\EntityCode
public static function loadByProperties(array $properties) {
return \Drupal::entityTypeManager()
->getStorage('opigno_group_content')
->loadByProperties($properties);
}