Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| 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. | 1 | |||
| LanguageInterface | interface | Drupal\Core\Language | core/ |
Defines an interface for languages. | 2 | 252 | ||
| 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 | |||
| LanguageListModuleInstallTest | class | Drupal\Tests\language\Functional | core/ |
Tests that the language list is not empty when language is installed. | ||||
| LanguageListTest | class | Drupal\Tests\language\Functional | core/ |
Adds a new language and tests changing its status and the default language. | ||||
| LanguageLocaleListTest | class | Drupal\Tests\language\Functional | core/ |
Adds a new language with translations and tests language list order. | ||||
| LanguageLocalTasksTest | class | Drupal\Tests\language\Unit\Menu | core/ |
Tests existence of language local tasks. | ||||
| LanguageManager | class | Drupal\Core\Language | core/ |
Class responsible for providing language support on language-unaware sites. | 1 | 16 | 2 | |
| LanguageManagerInterface | interface | Drupal\Core\Language | core/ |
Common interface for the language manager service. | 2 | 160 | ||
| LanguageMapper | class | Drupal\ckeditor5 | core/ |
Manages language mappings and discovery for ckeditor translations. | 3 | |||
| LanguageNegotiation | class | Drupal\language\Attribute | core/ |
Defines a language negotiation attribute object. | 12 | |||
| LanguageNegotiation | class | Drupal\language\Annotation | core/ |
Defines a language negotiation annotation object. | ||||
| LanguageNegotiation | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\language\Plugin\migrate\process | core/ |
Processes the arrays for the language types' negotiation methods and weights. | 1 | ||
| LanguageNegotiationBrowser | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Class for identifying language from the browser Accept-language HTTP header. | 1 | |||
| LanguageNegotiationContentEntity | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Class for identifying the content translation language. | 4 | |||
| LanguageNegotiationContentEntityTest | class | Drupal\Tests\language\Unit\Plugin\LanguageNegotiation | core/ |
Tests the LanguageNegotiationContentEntity plugin class. | ||||
| LanguageNegotiationContentEntityTest | class | Drupal\Tests\language\Functional | core/ |
Tests language negotiation with the language negotiator content entity. | ||||
| LanguageNegotiationFormOverrideTest | class | Drupal\Tests\config\Functional | core/ |
Tests language-negotiation overrides are not on language-negotiation form. | ||||
| LanguageNegotiationInfoTest | class | Drupal\Tests\language\Functional | core/ |
Tests alterations to language types/negotiation info. | ||||
| LanguageNegotiationMethodBase | abstract class | Drupal\language | core/ |
Base class for language negotiation methods. | 10 | 10 | ||
| LanguageNegotiationMethodInterface | interface | Drupal\language | core/ |
Interface for language negotiation classes. | 1 | 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. | 3 | |||
| LanguageNegotiationSession | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Identify language from a request/session parameter. | 1 | |||
| LanguageNegotiationSessionTest | class | Drupal\Tests\language\Functional | core/ |
Tests the session language negotiation method. | ||||
| LanguageNegotiationTest | class | Drupal\language_test\Plugin\LanguageNegotiation | core/ |
Class for identifying language from a selected language. | 1 | |||
| LanguageNegotiationTest | class | Drupal\Tests\language\Unit\process | core/ |
Tests Drupal\language\Plugin\migrate\process\LanguageNegotiation. | ||||
| LanguageNegotiationTestBase | abstract class | Drupal\Tests\language\Unit\Plugin\LanguageNegotiation | core/ |
Base class used for testing the various LanguageNegotiation plugins. | 1 | |||
| LanguageNegotiationTestTs | class | Drupal\language_test\Plugin\LanguageNegotiation | core/ |
Class for identifying language from a selected language. | ||||
| LanguageNegotiationUI | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Identifies the language from the interface text language selected for page. | 4 | |||
| LanguageNegotiationUrl | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Class for identifying language via URL prefix or domain. | 17 | |||
| LanguageNegotiationUrlFallback | class | Drupal\language\Plugin\LanguageNegotiation | core/ |
Determines the language to be assigned to URLs when none is detected. | 1 | |||
| LanguageNegotiationUrlTest | class | Drupal\Tests\language\Unit | core/ |
Tests Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl. | ||||
| LanguageNegotiationUrlTest | class | Drupal\Tests\language\Functional | core/ |
Tests Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl. | ||||
| LanguageNegotiationUser | class | Drupal\user\Plugin\LanguageNegotiation | core/ |
Class for identifying language from the user preferences. | 3 | |||
| LanguageNegotiationUserAdmin | class | Drupal\user\Plugin\LanguageNegotiation | core/ |
Identifies admin language from the user preferences. | 2 | |||
| LanguageNegotiator | class | Drupal\language | core/ |
Class responsible for performing language negotiation. | 2 | |||
| LanguageNegotiatorInterface | interface | Drupal\language | core/ |
Common interface for language negotiation services. | 1 | 7 | ||
| LanguageNegotiatorPluginTest | class | Drupal\Tests\language\Kernel | core/ |
Tests PluginNotFoundException. | ||||
| LanguagePathMonolingualTest | class | Drupal\Tests\language\Functional | core/ |
Confirm that paths are not changed on monolingual non-English sites. | ||||
| LanguagePluginTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\Language. | ||||
| LanguageReference | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
Defines the 'language_reference' data type. | 1 | |||
| 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. | 2 | |||
| LanguageSelect | class | Drupal\Core\Render\Element | core/ |
Provides a form element for selecting a language. | ||||
| LanguageSelectElementTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the language selection form element. | ||||
| LanguageSelectorTranslatableTest | class | Drupal\Tests\language\Functional | core/ |
Tests the content translation settings language selector options. | ||||
| LanguageSelectWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'Language' widget. |
Pagination
- Previous page
- Page 109
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.