You are here

public function ContentTypeMeeting::getDefaultModuleImageUrl 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::getDefaultModuleImageUrl()

Returns default image url.

1 call to ContentTypeMeeting::getDefaultModuleImageUrl()
ContentTypeMeeting::getContent in src/Plugin/OpignoGroupManagerContentType/ContentTypeMeeting.php

File

src/Plugin/OpignoGroupManagerContentType/ContentTypeMeeting.php, line 106

Class

ContentTypeMeeting
Class ContentTypeMeeting.

Namespace

Drupal\opigno_moxtra\Plugin\OpignoGroupManagerContentType

Code

public function getDefaultModuleImageUrl() {
  $request = \Drupal::request();
  $path = \Drupal::service('module_handler')
    ->getModule('opigno_module')
    ->getPath();
  return $request
    ->getBasePath() . '/' . $path . '/img/img_module.svg';
}