You are here

public function H5PReport::getStylesUsed in Opigno module 3.x

Same name and namespace in other branches
  1. 8 ActivityTypes/opigno_h5p/src/H5PReport.php \Drupal\opigno_h5p\H5PReport::getStylesUsed()

List of CSS stylesheets used by the processors when rendering the report.

File

ActivityTypes/opigno_h5p/src/H5PReport.php, line 56

Class

H5PReport
Class H5PReport.

Namespace

Drupal\opigno_h5p

Code

public function getStylesUsed() {
  $styles = [];

  // Fetch style used by each report processor.
  foreach ($this->processors as $processor) {
    $style = $processor
      ->getStyle();
    if (!empty($style)) {
      $styles[] = $style;
    }
  }
  return $styles;
}