X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Flibraries%2Ftests%2Fmodules%2Flibraries_test%2Fsrc%2FController%2FExampleController.php;fp=web%2Fmodules%2Fcontrib%2Flibraries%2Ftests%2Fmodules%2Flibraries_test%2Fsrc%2FController%2FExampleController.php;h=217ebf2f8ab4028aff545bd7560818355f602957;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/libraries/tests/modules/libraries_test/src/Controller/ExampleController.php b/web/modules/contrib/libraries/tests/modules/libraries_test/src/Controller/ExampleController.php new file mode 100644 index 000000000..217ebf2f8 --- /dev/null +++ b/web/modules/contrib/libraries/tests/modules/libraries_test/src/Controller/ExampleController.php @@ -0,0 +1,94 @@ +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 .= ''; + $output .= '
'; + + $output .= '

PHP

'; + $output .= '
'; + $output .= 'The following is a list of all loaded test PHP files:'; + $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'); + } + +}