protected function DeprecationAnalyzer::analyzeTwigTemplates in Upgrade Status 8.2
Same name and namespace in other branches
- 8.3 src/DeprecationAnalyzer.php \Drupal\upgrade_status\DeprecationAnalyzer::analyzeTwigTemplates()
Analyzes twig templates for calls of deprecated code.
Parameters
$directory: The directory which Twig templates should be analyzed.
Return value
array
1 call to DeprecationAnalyzer::analyzeTwigTemplates()
- DeprecationAnalyzer::analyze in src/
DeprecationAnalyzer.php - Analyze the codebase of an extension including all its sub-components.
File
- src/
DeprecationAnalyzer.php, line 453
Class
Namespace
Drupal\upgrade_statusCode
protected function analyzeTwigTemplates($directory) {
return (new \Twig_Util_DeprecationCollector($this->twigEnvironment))
->collectDir($directory, '.html.twig');
}