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

Breadcrumb

  1. Drupal Core 11.1.x

namespace DrupalPractice\Sniffs\General

Object name File name Summary
AccessAdminPagesSniff vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/General/AccessAdminPagesSniff.php Throws a warning if the "access administration pages" string is found in
hook_menu().
ClassNameSniff vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/General/ClassNameSniff.php Checks that classes without namespaces are properly prefixed with the module
name.
DescriptionTSniff vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/General/DescriptionTSniff.php Checks that string values for #description in render arrays are translated.
ExceptionTSniff vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/General/ExceptionTSniff.php Checks that exceptions aren't translated.
FormStateInputSniff vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/General/FormStateInputSniff.php Throws a message whenever $form_state['input'] is used. $form_state['values']
is preferred.
LanguageNoneSniff vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/General/LanguageNoneSniff.php Checks that ['und'] is not used, should be LANGUAGE_NONE.
OptionsTSniff vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/General/OptionsTSniff.php Checks that values in #options form arrays are translated.
VariableNameSniff vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/General/VariableNameSniff.php Checks the usage of variable_get() in forms and the variable name.

API Navigation

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