Classes, traits, and interfaces - 8.9.x - drupal
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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
LanguageAddForm | class | Drupal\language\Form | core/ |
Controller for language addition forms. | ||||
LanguageArgument | class | Drupal\views\Plugin\views\argument | core/ |
Defines an argument handler to accept a language. | ||||
LanguageBlock | class | Drupal\language\Plugin\Derivative | core/ |
Provides language switcher block plugin definitions for all languages. | ||||
LanguageBlock | class | Drupal\language\Plugin\Block | core/ |
Provides a 'Language switcher' block. | ||||
LanguageBlockSettingsVisibilityTest | class | Drupal\Tests\language\Functional | core/ |
Tests that the language settings on block config appears correctly. | ||||
LanguageBreadcrumbTest | class | Drupal\Tests\language\Functional | core/ |
Tests breadcrumbs functionality. | ||||
LanguageBrowserDetectionAcceptLanguageTest | class | Drupal\Tests\language\Functional | core/ |
Tests browser language detection with different accept-language headers. | ||||
LanguageBrowserDetectionTest | class | Drupal\Tests\language\Functional | core/ |
Tests browser language detection. | ||||
LanguageConditionTest | class | Drupal\Tests\language\Kernel\Condition | core/ |
Tests that the language condition, provided by the language module, is working properly. | ||||
LanguageConfigCollectionNameTrait | trait | Drupal\language\Config | core/ |
Provides a common trait for working with language override collection names. | ||||
LanguageConfigFactoryOverride | class | Drupal\language\Config | core/ |
Provides language overrides for the configuration factory. | 2 | |||
LanguageConfigFactoryOverrideInterface | interface | Drupal\language\Config | core/ |
Defines the interface for a configuration factory language override object. | 1 | 1 | ||
LanguageConfigFactoryOverrideTest | class | Drupal\Tests\language\Kernel | core/ |
Tests \Drupal\language\Config\LanguageConfigFactoryOverride. | ||||
LanguageConfigOverride | class | Drupal\language\Config | core/ |
Defines language configuration overrides. | 5 | |||
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 | |||
LanguageConfigOverrideImportTest | class | Drupal\Tests\language\Functional | core/ |
Ensures the language config overrides can be synchronized. | ||||
LanguageConfigOverrideInstallTest | class | Drupal\Tests\language\Kernel | core/ |
Ensures the language config overrides can be installed. | ||||
LanguageConfigOverrideTest | class | Drupal\Tests\language\Unit\Config | core/ |
@coversDefaultClass \Drupal\language\Config\LanguageConfigOverride @group Config @group language | ||||
LanguageConfigSchemaTest | class | Drupal\Tests\language\Functional | core/ |
Ensures the language config schema is correct. | ||||
LanguageConfiguration | class | Drupal\language\Element | core/ |
Defines an element for language configuration for a single field. | ||||
LanguageConfigurationElement | class | Drupal\language_elements_test\Form | core/ |
A form containing a language configuration element. | 1 | |||
LanguageConfigurationElementTest | class | Drupal\Tests\language\Functional | core/ |
Tests the features of the language configuration element field. | ||||
LanguageConfigurationElementTest | class | Drupal\language_elements_test\Form | core/ |
A form containing a language select element. | 1 | |||
LanguageConfigurationTest | class | Drupal\Tests\language\Functional | core/ |
Adds and configures languages to check negotiation changes. | ||||
LanguageContentSettings | class | Drupal\language\Plugin\migrate\source\d6 | core/ |
Drupal multilingual node settings from database. | ||||
LanguageContentSettings | class | Drupal\language\Plugin\migrate\source\d7 | core/ |
Drupal multilingual 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. | ||||
LanguageContentSettingsTest | class | Drupal\Tests\language\Kernel\Plugin\migrate\source\d6 | core/ |
Tests menu source plugin. | ||||
LanguageContentSettingsTest | class | Drupal\Tests\language\Kernel\Plugin\migrate\source\d7 | core/ |
Tests menu source plugin. | ||||
LanguageContentTaxonomyVocabularySettingsTest | class | Drupal\Tests\language\Kernel\Plugin\migrate\source\d6 | core/ |
Tests i18ntaxonomy vocabulary setting source plugin. | ||||
LanguageContentTaxonomyVocabularySettingsTest | class | Drupal\Tests\language\Kernel\Plugin\migrate\source\d7 | core/ |
Tests i18ntaxonomy vocabulary setting source plugin. | ||||
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 | |||
LanguageCustomLanguageConfigurationTest | class | Drupal\Tests\language\Functional | core/ |
Adds and configures custom languages. | ||||
LanguageDefault | class | Drupal\Core\Language | core/ |
Provides a simple get and set wrapper to the default language object. | 9 | 2 | ||
LanguageDeleteForm | class | Drupal\language\Form | core/ |
Defines a confirmation form for deleting a language entity. | ||||
LanguageDependencyInjectionTest | class | Drupal\Tests\language\Kernel | core/ |
Compares the default language from $GLOBALS against the dependency injected language object. | ||||
LanguageDomains | class | Drupal\language\Plugin\migrate\process | core/ |
This plugin makes sure that no domain is empty if domain negotiation is used. | 1 | |||
LanguageDomainsTest | class | Drupal\Tests\language\Unit\process | core/ |
@coversDefaultClass \Drupal\language\Plugin\migrate\process\LanguageDomains @group language | ||||
LanguageEditForm | class | Drupal\language\Form | core/ |
Controller for language edit forms. | ||||
LanguageEntityFieldAccessHookTest | class | Drupal\Tests\language\Functional | core/ |
Tests language picker compatibility with hook_entity_field_access. | ||||
LanguageException | class | Drupal\language\Exception | core/ |
A base exception thrown in any language system operations. | 1 | |||
LanguageFallbackTest | class | Drupal\Tests\language\Kernel | core/ |
Tests the language fallback behavior. | ||||
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 | |||
LanguageInterface | interface | Drupal\Core\Language | core/ |
Defines a language. | 2 | 231 |
Pagination
- Previous page
- Page 91
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.