Loading core/modules/system/tests/themes/engines/nyan_cat/nyan_cat.engine +0 −9 Original line number Diff line number Diff line Loading @@ -6,7 +6,6 @@ */ use Drupal\Component\Utility\Html; use Drupal\Core\Extension\Extension; /** * Implements hook_theme(). Loading @@ -24,14 +23,6 @@ function nyan_cat_extension() { /** * Implements hook_render_template(). * * @param string $template_file * The filename of the template to render. * @param mixed[] $variables * A keyed array of variables that will appear in the output. * * @return string * The output generated by the template. */ function nyan_cat_render_template($template_file, $variables) { $output = str_replace('div', 'nyancat', file_get_contents(\Drupal::root() . '/' . $template_file)); Loading core/phpcs.xml.dist +1 −1 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <ruleset name="drupal_core"> <arg name="extensions" value="inc,install,module,php,profile,test,theme,yml"/> <arg name="extensions" value="engine,inc,install,module,php,profile,test,theme,yml"/> <description>Default PHP CodeSniffer configuration for Drupal core.</description> <!--Exclude folders used by common frontend tools. These folders match the file_scan_ignore_directories setting in default.settings.php--> Loading core/themes/engines/twig/twig.engine +0 −14 Original line number Diff line number Diff line Loading @@ -7,7 +7,6 @@ use Drupal\Component\Utility\Html; use Drupal\Core\Render\Markup; use Drupal\Core\Extension\Extension; use Twig\Error\RuntimeError; /** Loading @@ -26,19 +25,6 @@ function twig_extension() { /** * Implements hook_render_template(). * * Renders a Twig template. * * If the Twig debug setting is enabled, HTML comments including the theme hook * and template file name suggestions will surround the template markup. * * @param string $template_file * The file name of the template to render. * @param array $variables * A keyed array of variables that will appear in the output. * * @return string|\Drupal\Component\Render\MarkupInterface * The output generated by the template, plus any debug information. */ function twig_render_template($template_file, array $variables) { /** @var \Twig\Environment $twig_service */ Loading Loading
core/modules/system/tests/themes/engines/nyan_cat/nyan_cat.engine +0 −9 Original line number Diff line number Diff line Loading @@ -6,7 +6,6 @@ */ use Drupal\Component\Utility\Html; use Drupal\Core\Extension\Extension; /** * Implements hook_theme(). Loading @@ -24,14 +23,6 @@ function nyan_cat_extension() { /** * Implements hook_render_template(). * * @param string $template_file * The filename of the template to render. * @param mixed[] $variables * A keyed array of variables that will appear in the output. * * @return string * The output generated by the template. */ function nyan_cat_render_template($template_file, $variables) { $output = str_replace('div', 'nyancat', file_get_contents(\Drupal::root() . '/' . $template_file)); Loading
core/phpcs.xml.dist +1 −1 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <ruleset name="drupal_core"> <arg name="extensions" value="inc,install,module,php,profile,test,theme,yml"/> <arg name="extensions" value="engine,inc,install,module,php,profile,test,theme,yml"/> <description>Default PHP CodeSniffer configuration for Drupal core.</description> <!--Exclude folders used by common frontend tools. These folders match the file_scan_ignore_directories setting in default.settings.php--> Loading
core/themes/engines/twig/twig.engine +0 −14 Original line number Diff line number Diff line Loading @@ -7,7 +7,6 @@ use Drupal\Component\Utility\Html; use Drupal\Core\Render\Markup; use Drupal\Core\Extension\Extension; use Twig\Error\RuntimeError; /** Loading @@ -26,19 +25,6 @@ function twig_extension() { /** * Implements hook_render_template(). * * Renders a Twig template. * * If the Twig debug setting is enabled, HTML comments including the theme hook * and template file name suggestions will surround the template markup. * * @param string $template_file * The file name of the template to render. * @param array $variables * A keyed array of variables that will appear in the output. * * @return string|\Drupal\Component\Render\MarkupInterface * The output generated by the template, plus any debug information. */ function twig_render_template($template_file, array $variables) { /** @var \Twig\Environment $twig_service */ Loading