You are here

public function ContentTypeMeeting::getDefaultModuleImageUrl in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 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';
}