function OffCanvasTestBase::themeDataProvider

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

Data provider that returns theme name as the sole argument.

File

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

Class

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

Namespace

Drupal\Tests\system\FunctionalJavascript

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.