diff --git a/core/modules/system/tests/modules/theme_test/lib/Drupal/theme_test/ThemeTestController.php b/core/modules/system/tests/modules/theme_test/lib/Drupal/theme_test/ThemeTestController.php index 44a7668..583793e 100644 --- a/core/modules/system/tests/modules/theme_test/lib/Drupal/theme_test/ThemeTestController.php +++ b/core/modules/system/tests/modules/theme_test/lib/Drupal/theme_test/ThemeTestController.php @@ -8,19 +8,11 @@ namespace Drupal\theme_test; use Drupal\Core\Controller\ControllerInterface; -use Symfony\Component\DependencyInjection\ContainerInterface; /** * Controller routines for theme test routes. */ -class ThemeTestController implements ControllerInterface { - - /** - * {@inheritdoc} - */ - public static function create(ContainerInterface $container) { - return new static(); - } +class ThemeTestController { /** * Menu callback for testing that a theme template overrides a theme function. @@ -41,14 +33,18 @@ public function functionTemplateOverridden() { */ public function infoStylesheets() { $path = drupal_get_path('module', 'theme_test'); - $render_array = array(); - $render_array['#attached']['css'][] = "$path/css/base-override.css"; - $render_array['#attached']['css'][] = "$path/css/base-override.sub-remove.css"; - $render_array['#attached']['css'][] = "$path/css/base-remove.css"; - $render_array['#attached']['css'][] = "$path/css/base-remove.sub-override.css"; - $render_array['#attached']['css'][] = "$path/css/sub-override.css"; - $render_array['#attached']['css'][] = "$path/css/sub-remove.css"; - return $render_array; + return array( + '#attached' => array( + 'css' => array( + "$path/css/base-override.css", + "$path/css/base-override.sub-remove.css", + "$path/css/base-remove.css", + "$path/css/base-remove.sub-override.css", + "$path/css/sub-override.css", + "$path/css/sub-remove.css", + ), + ), + ); } /** * Tests template overridding based on filename.