You are here

public function ContentTypeILT::getDefaultModuleImageUrl in Opigno Instructor-led Trainings 3.x

Same name and namespace in other branches
  1. 8 src/Plugin/OpignoGroupManagerContentType/ContentTypeILT.php \Drupal\opigno_ilt\Plugin\OpignoGroupManagerContentType\ContentTypeILT::getDefaultModuleImageUrl()

Returns default image url.

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

File

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

Class

ContentTypeILT
Class ContentTypeILT.

Namespace

Drupal\opigno_ilt\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';
}