JavaScript';
$output .= '
';
$output .= 'If this text shows up, no JavaScript test file was loaded.';
$output .= '
';
// For easier debugging of CSS loading, the loaded CSS files will color the
// following text.
$output .= 'CSS
';
$output .= '';
$output .= 'If one of the CSS test files has been loaded, this text will be colored:';
$output .= '
';
// Do not reference the actual CSS files (i.e. including '.css'), because that
// breaks testing.
$output .= '- example_1: red
';
$output .= '- example_2: green
';
$output .= '- example_3: orange
';
$output .= '- example_4: blue
';
$output .= '- libraries_test: purple
';
$output .= '
';
$output .= '
';
$output .= 'PHP
';
$output .= '';
$output .= 'The following is a list of all loaded test PHP files:';
$output .= '
';
$files = get_included_files();
foreach ($files as $file) {
if ((strpos($file, 'libraries/test') || strpos($file, 'libraries_test')) && !strpos($file, 'libraries_test.module') && !strpos($file, 'lib/Drupal/libraries_test')) {
$output .= '- ' . str_replace(DRUPAL_ROOT . '/', '', $file) . '
';
}
}
$output .= '
';
$output .= '
';
return ['#markup' => $output];
}
public function files() {
return $this->buildPage('example_files');
}
public function integration() {
return $this->buildPage('example_integration_files');
}
public function versions() {
return $this->buildPage('example_versions');
}
public function variant() {
return $this->buildPage('example_variant', 'example_variant');
}
public function versionsAndVariants() {
return $this->buildPage('example_versions_and_variants', 'example_variant_2');
}
public function cache() {
return $this->buildPage('example_callback');
}
}