Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
Introduction to classes
A lot of the PHP code in Drupal is object oriented (OO), making use of PHP classes, interfaces, and traits. See the Objected-oriented programming conventions for more information.
See also
Objected-oriented programming conventions
File
-
core/
core.api.php, line 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
LanguageConfigOverrideCrudEvent | class | Drupal\language\Config | core/ |
Provides a language override event for event listeners. | 1 | |||
LanguageConfigOverrideEvents | final class | Drupal\language\Config | core/ |
Defines events for language configuration overrides. | 1 | |||
LanguageConfiguration | class | Drupal\language\Element | core/ |
Defines an element for language configuration for a single field. | ||||
LanguageConstructSpacingSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace | vendor/ |
|||||
LanguageConstructSpacingSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace | vendor/ |
|||||
LanguageConstructWithParenthesesSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
|||||
LanguageContentSettings | class | Drupal\language\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n node settings from database. | ||||
LanguageContentSettings | class | Drupal\language\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n node settings from database. | ||||
LanguageContentSettingsTaxonomyVocabulary | class | Drupal\language\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n vocabularies source from database. | ||||
LanguageContentSettingsTaxonomyVocabulary | class | Drupal\language\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n vocabularies source from database. | ||||
LanguageConverter | class | Drupal\language\ProxyClass | core/ |
Provides a proxy class for \Drupal\language\LanguageConverter. | ||||
LanguageConverter | class | Drupal\language | core/ |
Converts parameters for upcasting entity IDs to full objects. | 2 | |||
LanguageDefault | class | Drupal\Core\Language | core/ |
Provides a simple get and set wrapper to the default language object. | 5 | |||
LanguageDeleteForm | class | Drupal\language\Form | core/ |
Defines a confirmation form for deleting a language entity. | 1 | |||
LanguageDomains | class | Drupal\language\Plugin\migrate\process | core/ |
This plugin makes sure that no domain is empty if domain negotiation is used. | ||||
LanguageEditForm | class | Drupal\language\Form | core/ |
Controller for language edit forms. | 1 | |||
LanguageException | class | Drupal\language\Exception | core/ |
A base exception thrown in any language system operations. | 1 | |||
LanguageField | class | Drupal\views\Plugin\views\field | core/ |
Defines a field handler to translate a language into its readable form. | ||||
LanguageFilter | class | Drupal\views\Plugin\views\filter | core/ |
Provides filtering by language. | ||||
LanguageFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'language' formatter. | ||||
LanguageFormBase | abstract class | Drupal\language\Form | core/ |
Base form for language add and edit forms. | 2 | |||
LanguageHooks | class | Drupal\language\Hook | core/ |
Hook implementations for language. | ||||
LanguageInterface | interface | Drupal\Core\Language | core/ |
Defines an interface for languages. | 2 | 105 | ||
LanguageItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'language' entity field item. | 1 | 1 | ||
LanguageListBuilder | class | Drupal\language | core/ |
Defines a class to build a listing of language entities. | 1 | |||
LanguageManager | class | Drupal\Core\Language | core/ |
Class responsible for providing language support on language-unaware sites. | 1 | 7 | ||
LanguageManagerInterface | interface | Drupal\Core\Language | core/ |
Common interface for the language manager service. | 2 | 92 | ||
LanguageNegotiation | class | Drupal\language\Attribute | core/ |
Defines a language negotiation attribute object. | 10 | |||
LanguageNegotiation | class | Drupal\language\Annotation | core/ |
Defines a language negotiation annotation object. | ||||
LanguageNegotiation | class | Drupal\language\Plugin\migrate\process | core/ |
Processes the arrays for the language types' negotiation methods and weights. | ||||
LanguageNegotiationBrowser | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Class for identifying language from the browser Accept-language HTTP header. | ||||
LanguageNegotiationContentEntity | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Class for identifying the content translation language. | ||||
LanguageNegotiationMethodBase | abstract class | Drupal\language | core/ |
Base class for language negotiation methods. | 9 | 9 | ||
LanguageNegotiationMethodInterface | interface | Drupal\language | core/ |
Interface for language negotiation classes. | 1 | |||
LanguageNegotiationMethodManager | class | Drupal\language | core/ |
Manages language negotiation methods. | 2 | |||
LanguageNegotiationSelected | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Class for identifying language from a selected language. | 1 | |||
LanguageNegotiationSession | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Identify language from a request/session parameter. | ||||
LanguageNegotiationUI | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Identifies the language from the interface text language selected for page. | 2 | |||
LanguageNegotiationUrl | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Class for identifying language via URL prefix or domain. | 2 | |||
LanguageNegotiationUrlFallback | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Determines the language to be assigned to URLs when none is detected. | 1 | |||
LanguageNegotiationUser | class | Drupal\user\Plugin\LanguageNegotiation | core/ |
Class for identifying language from the user preferences. | 1 | |||
LanguageNegotiationUserAdmin | class | Drupal\user\Plugin\LanguageNegotiation | core/ |
Identifies admin language from the user preferences. | 1 | |||
LanguageNegotiator | class | Drupal\language | core/ |
Class responsible for performing language negotiation. | 2 | |||
LanguageNegotiatorInterface | interface | Drupal\language | core/ |
Common interface for language negotiation services. | 1 | 4 | ||
LanguageNoneSniff | class | DrupalPractice\Sniffs\General | vendor/ |
Checks that ['und'] is not used, should be LANGUAGE_NONE. | ||||
LanguageReference | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
Defines the 'language_reference' data type. | ||||
LanguageRequestSubscriber | class | Drupal\language\EventSubscriber | core/ |
Sets the $request property on the language manager. | ||||
LanguagesCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the LanguagesCacheContext service, for "per language" caching. | ||||
LanguageSelect | class | Drupal\Core\Render\Element | core/ |
Provides a form element for selecting a language. | ||||
LanguageSelectWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'Language' widget. |