Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ThemeSniff.php

ThemeSniff::$reservedFunctions

List of functions starting with "theme_" that don't generate theme output.

Type: array

File

vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/ThemeSniff.php, line 30

Class

ThemeSniff
\DrupalPractice\Sniffs\FunctionCalls\Checks that theme functions are not directly called.

Namespace

DrupalPractice\Sniffs\FunctionCalls

Code

protected $reservedFunctions = [
    'theme_get_registry',
    'theme_get_setting',
    'theme_render_template',
    'theme_enable',
    'theme_disable',
    'theme_get_suggestions',
];

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal