public function ContentTypeMeeting::getContentFromRequest in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 src/Plugin/OpignoGroupManagerContentType/ContentTypeMeeting.php \Drupal\opigno_moxtra\Plugin\OpignoGroupManagerContentType\ContentTypeMeeting::getContentFromRequest()
Try to get the content from a Request object.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The request object.
Return value
LearningPathContent|false The content if possible. FALSE otherwise.
Overrides ContentTypeInterface::getContentFromRequest
File
- src/
Plugin/ OpignoGroupManagerContentType/ ContentTypeMeeting.php, line 115
Class
- ContentTypeMeeting
- Class ContentTypeMeeting.
Namespace
Drupal\opigno_moxtra\Plugin\OpignoGroupManagerContentTypeCode
public function getContentFromRequest(Request $request) {
$meeting = $request
->get('opigno_moxtra_meeting');
if ($meeting === NULL || $meeting === FALSE) {
return FALSE;
}
return $this
->getContent($meeting);
}