You are here

public function ContentTypeMeeting::getContentFromRequest in Opigno Moxtra 8

Same name and namespace in other branches
  1. 3.x 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\OpignoGroupManagerContentType

Code

public function getContentFromRequest(Request $request) {
  $meeting = $request
    ->get('opigno_moxtra_meeting');
  if ($meeting === NULL || $meeting === FALSE) {
    return FALSE;
  }
  return $this
    ->getContent($meeting);
}