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 |
|---|---|---|---|---|---|---|---|---|
| ExtractorTest | class | Drupal\Tests\Core\Theme\Icon\Plugin | core/ |
Tests icon extractor with base and finder base plugin. | ||||
| ExtractTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests Drupal\migrate\Plugin\migrate\process\Extract. | ||||
| ExtractTest | class | Drupal\Tests\migrate\Kernel\process | core/ |
Tests the extract process plugin. | ||||
| ExtraFieldBlock | class | Drupal\layout_builder\Plugin\Block | core/ |
Provides a block that renders an extra field from an entity. | 1 | |||
| ExtraFieldBlockCacheTagInvalidator | class | Drupal\layout_builder\Cache | core/ |
Provides a cache tag invalidator that clears the block cache. | 2 | |||
| ExtraFieldBlockDeriver | class | Drupal\layout_builder\Plugin\Derivative | core/ |
Provides entity field block definitions for every field. | 1 | |||
| FactoryInterface | interface | Drupal\Component\Plugin\Factory | core/ |
Factory interface implemented by all plugin factories. | 2 | 5 | ||
| FactoryTest | class | Drupal\KernelTests\Core\Plugin | core/ |
Tests that plugins are correctly instantiated. | ||||
| Failing | class | Drupal\image_test\Plugin\ImageToolkit\Operation\test | core/ |
An image toolkit operation that throws a \RuntimeException. | ||||
| FailureMarker | final class | Drupal\package_manager | core/ |
Handles failure marker file operation. | 8 | |||
| FailureMarkerExistsException | final class | Drupal\package_manager\Exception | core/ |
Exception thrown if a stage can't be created due to an earlier failed commit. | 5 | |||
| FailureMarkerRequirementTest | class | Drupal\Tests\package_manager\Functional | core/ |
Tests that Package Manager's requirements check for the failure marker. | ||||
| FailureMarkerTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Drupal\package_manager\FailureMarker. | ||||
| FakeAutoloader | class | Drupal\Tests\Core\DrupalKernel | core/ |
A fake autoloader for testing. | ||||
| FakeLogEntries | trait | Drupal\Tests\dblog\Functional | core/ |
Provides methods to generate log entries. | 1 | |||
| FakeRecord | class | Drupal\Tests\system\Functional\Database | core/ |
Fetches into a class. | 2 | |||
| FakeSiteFixtureTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Test that the 'fake-site' fixture is a valid starting point. | ||||
| FakeViewModeContext | class | Drupal\layout_builder_field_block_test\ContextProvider | core/ |
Provides a global context for view_mode for testing purposes. | 2 | |||
| FallbackFieldTypeCategory | class | Drupal\Core\Field | core/ |
Fallback plugin class for FieldTypeCategoryManager. | 1 | 1 | ||
| FallbackPluginManagerInterface | interface | Drupal\Component\Plugin | core/ |
An interface implemented by plugin managers with fallback plugin behaviors. | 6 | 8 | ||
| FalseContentResponse | class | Drupal\Tests\Core\StackMiddleware | core/ |
Response that returns FALSE from ::getContent(). | ||||
| Fast404ExceptionHtmlSubscriber | class | Drupal\Core\EventSubscriber | core/ |
High-performance 404 exception subscriber. | 2 | |||
| Fast404Test | class | Drupal\FunctionalTests\EventSubscriber | core/ |
Tests the fast 404 functionality. | ||||
| FavoriteAnimalTestForm | class | Drupal\block_test\Form | core/ |
Form that performs favorite animal test. | ||||
| Feed | class | Drupal\views\Plugin\views\display | core/ |
The plugin that handles a feed, such as RSS or atom. | ||||
| FetchModeTrait | trait | Drupal\Core\Database | core/ |
Provide helper methods for statement fetching. | 4 | |||
| FetchTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Database system's various fetch capabilities. | ||||
| FiberPlaceholderTest | class | Drupal\Tests\big_pipe\Unit\Render | core/ |
Tests Drupal\big_pipe\Render\BigPipe. | ||||
| FibersTestExtension | class | Drupal\twig_fibers_test\TwigExtension | core/ |
Custom Twig extension that suspends a fiber. | 2 | |||
| Fid | class | Drupal\file\Plugin\views\argument | core/ |
Argument handler to accept multiple file ids. | ||||
| Field | class | Drupal\field\Plugin\migrate\source\d6 | core/ |
Drupal 6 field source from database. | 1 | 1 | ||
| Field | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 field source from database. | 1 | 1 | ||
| FieldableEntity | abstract class | Drupal\migrate_drupal\Plugin\migrate\source\d7 | core/ |
Base class for D7 source plugins which need to collect field values. | 8 | 8 | ||
| FieldableEntityDefinitionUpdateTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests EntityDefinitionUpdateManager's fieldable entity update functionality. | ||||
| FieldableEntityInterface | interface | Drupal\Core\Entity | core/ |
Interface for entities having fields. | 1 | 92 | 1 | |
| FieldableEntityNormalizerTrait | trait | Drupal\serialization\Normalizer | core/ |
A trait for providing fieldable entity normalization/denormalization methods. | ||||
| FieldableEntityStorageInterface | interface | Drupal\Core\Entity | core/ |
A storage that supports entity types with field definitions. | 1 | 3 | ||
| FieldAccessTest | class | Drupal\KernelTests\Core\Field | core/ |
Tests Field level access hooks. | ||||
| FieldAccessTest | class | Drupal\Tests\field\Functional | core/ |
Tests Field access. | ||||
| FieldApiDataTest | class | Drupal\Tests\views\Kernel | core/ |
Tests the Field Views data. | ||||
| FieldAPIHandlerTrait | trait | Drupal\views | core/ |
A trait containing helper methods for field definitions. | 8 | |||
| FieldAttachOtherTest | class | Drupal\Tests\field\Kernel | core/ |
Tests other Field API functions. | ||||
| FieldAttachStorageTest | class | Drupal\Tests\field\Kernel | core/ |
Tests storage-related Field Attach API functions. | ||||
| FieldBlock | class | Drupal\layout_builder\Plugin\Block | core/ |
Provides a block that renders a field from an entity. | 1 | 3 | ||
| FieldBlock | class | Drupal\layout_builder_field_block_test\Plugin\Block | core/ |
Provides test field block to test with Block UI. | ||||
| FieldBlockDeriver | class | Drupal\layout_builder\Plugin\Derivative | core/ |
Provides entity field block definitions for every field. | 2 | |||
| FieldBlockDeriverTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests field block plugin derivatives. | ||||
| FieldBlockTest | class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
Tests Drupal\layout_builder\Plugin\Block\FieldBlock. | ||||
| FieldBlockTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests Drupal\layout_builder\Plugin\Block\FieldBlock. | ||||
| FieldBooleanTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\Boolean handler. |
Pagination
- Previous page
- Page 73
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.