Skip to content
Snippets Groups Projects
Verified Commit 0a6ff263 authored by Dave Long's avatar Dave Long
Browse files

Issue #3261574 by quietone, kkalashnikov, alexpott, smustgrave: Add .engine to...

Issue #3261574 by quietone, kkalashnikov, alexpott, smustgrave: Add .engine to files scanned by PHPCS
parent 224543f1
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@
*/
use Drupal\Component\Utility\Html;
use Drupal\Core\Extension\Extension;
/**
* Implements hook_theme().
......@@ -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));
......
<?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-->
......
......@@ -7,7 +7,6 @@
use Drupal\Component\Utility\Html;
use Drupal\Core\Render\Markup;
use Drupal\Core\Extension\Extension;
use Twig\Error\RuntimeError;
/**
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment