You are here

public function GeshiFilterConflicts::content in GeSHi Filter for syntax highlighting 8

Same name and namespace in other branches
  1. 8.2 src/Controller/GeshiFilterConflicts.php \Drupal\geshifilter\Controller\GeshiFilterConflicts::content()

File

src/Controller/GeshiFilterConflicts.php, line 15

Class

GeshiFilterConflicts
Show the filters tah conflic with GeshiFilter.

Namespace

Drupal\geshifilter\Controller

Code

public function content() {
  $conflicts = self::listConflicts();
  if (count($conflicts) == 0) {
    $build = [
      '#type' => 'markup',
      '#markup' => $this
        ->t('No conflicts found.'),
    ];
    return $build;
  }
  else {
    return [];
  }
}