public function ContentTypeMeeting::getAllContents in Opigno Moxtra 8
Same name and namespace in other branches
- 3.x src/Plugin/OpignoGroupManagerContentType/ContentTypeMeeting.php \Drupal\opigno_moxtra\Plugin\OpignoGroupManagerContentType\ContentTypeMeeting::getAllContents()
Get all the entities in an array of LearningPathContent.
Return value
LearningPathContent[]|false The contents or FALSE in case of error.
Overrides ContentTypeInterface::getAllContents
1 call to ContentTypeMeeting::getAllContents()
- ContentTypeMeeting::getAvailableContents in src/
Plugin/ OpignoGroupManagerContentType/ ContentTypeMeeting.php - Get all the published entities in an array of LearningPathContent.
File
- src/
Plugin/ OpignoGroupManagerContentType/ ContentTypeMeeting.php, line 144
Class
- ContentTypeMeeting
- Class ContentTypeMeeting.
Namespace
Drupal\opigno_moxtra\Plugin\OpignoGroupManagerContentTypeCode
public function getAllContents() {
try {
/** @var \Drupal\opigno_moxtra\Entity\Meeting[] $meetings */
$meetings = \Drupal::entityTypeManager()
->getStorage('opigno_moxtra_meeting')
->loadMultiple();
} catch (InvalidPluginDefinitionException $e) {
// TODO: Log the error.
return FALSE;
}
$contents = [];
foreach ($meetings as $meeting) {
$contents[] = $this
->getContent($meeting);
}
return $contents;
}