Skip to content

Instantly share code, notes, and snippets.

@AlexanderAllen
Created July 14, 2022 01:32
Show Gist options
  • Save AlexanderAllen/7616063514b03e4b1bcc185c3efa3b40 to your computer and use it in GitHub Desktop.
Save AlexanderAllen/7616063514b03e4b1bcc185c3efa3b40 to your computer and use it in GitHub Desktop.
Drupal 8: Dump name of all templates processed to filesystem
# src/web/core/lib/Drupal/Core/Theme/ThemeManager.php, line 389
static $c = 1;
$filename = '/var/sys/RM26464.log';
if ($c == 1) {
$handle = fopen($filename, 'r+');
ftruncate($handle, 0);
rewind($handle);
// echo fread($handle, filesize($filename));
fclose($handle);
}
error_log("template $c: $template_file\n", 3, $filename);
$c++;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment