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 |
|---|---|---|---|---|---|---|---|---|
| Extract | class | Drupal\migrate\Plugin\migrate\process | core/ |
Extracts a value from an array. | 1 | |||
| ExtractTest | class | Drupal\Tests\migrate\Unit\process | core/ |
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\Extract[[api-linebreak]] @group migrate | ||||
| 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 | 3 | ||
| 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. | ||||
| 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 | |||
| FakeViewModeContext | class | Drupal\layout_builder_fieldblock_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. | ||||
| FastTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests autocompletion not loading registry. | ||||
| 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. | ||||
| FetchTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Database system's various fetch capabilities. | ||||
| FiberPlaceholderTest | class | Drupal\Tests\big_pipe\Unit\Render | core/ |
@coversDefaultClass \Drupal\big_pipe\Render\BigPipe[[api-linebreak]] @group big_pipe | ||||
| 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 | |||
| Field | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 field source from database. | 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 | 90 | ||
| 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. | 7 | |||
| 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 | 2 | ||
| FieldBlock | class | Drupal\layout_builder_fieldblock_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/ |
@coversDefaultClass \Drupal\layout_builder\Plugin\Block\FieldBlock[[api-linebreak]] | ||||
| FieldBlockTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
@coversDefaultClass \Drupal\layout_builder\Plugin\Block\FieldBlock[[api-linebreak]] @group Field | ||||
| FieldBooleanTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\Boolean handler. | ||||
| FieldBundle | class | Drupal\field\Plugin\migrate\process\d7 | core/ |
Determines the bundle for a field. | ||||
| FieldConfig | class | Drupal\field\Entity | core/ |
Defines the Field entity. | 323 | |||
| FieldConfigAccessControlHandler | class | Drupal\field | core/ |
Defines the access control handler for the field config entity type. | 1 | |||
| FieldConfigAccessControlHandlerTest | class | Drupal\Tests\field\Unit | core/ |
Tests the field config access controller. | ||||
| FieldConfigAddController | final class | Drupal\field_ui\Controller | core/ |
Controller for building the field instance form. | 1 |
Pagination
- Previous page
- Page 67
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.