Classes, traits, and interfaces - 10.3.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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
LanguageContentSettingsTaxonomyVocabulary | class | Drupal\language\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n vocabularies source from database. | 1 | |||
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. | 8 | 2 | ||
LanguageDeleteForm | class | Drupal\language\Form | core/ |
Defines a confirmation form for deleting a language entity. | ||||
LanguageDependencyInjectionTest | class | Drupal\Tests\language\Kernel | core/ |
Tests that a language object can be injected. | ||||
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[[api-linebreak]] @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 an interface for languages. | 2 | 242 | ||
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. | ||||
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 | 14 | 2 | |
LanguageManagerInterface | interface | Drupal\Core\Language | core/ |
Common interface for the language manager service. | 2 | 118 | ||
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 | 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 | |||
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/ |
@coversDefaultClass \Drupal\language\Plugin\migrate\process\LanguageNegotiation[[api-linebreak]] @group language | ||||
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 |
Pagination
- Previous page
- Page 98
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.