You are here

public function OffCanvasTestBase::themeDataProvider in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::themeDataProvider()
  2. 10 core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::themeDataProvider()

Dataprovider that returns theme name as the sole argument.

File

core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php, line 143

Class

OffCanvasTestBase
Base class contains common test functionality for the Off-canvas dialog.

Namespace

Drupal\Tests\system\FunctionalJavascript

Code

public function themeDataProvider() {
  $themes = $this
    ->getTestThemes();
  $data = [];
  foreach ($themes as $theme) {
    $data[$theme] = [
      $theme,
    ];
  }
  return $data;
}