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 |
---|---|---|---|---|---|---|---|---|
ExtractTest | class | Drupal\Tests\migrate\Unit\process | core/ |
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\Extract @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 | |||
ExtraFieldBlockDeriver | class | Drupal\layout_builder\Plugin\Derivative | core/ |
Provides entity field block definitions for every field. | ||||
ExtraFieldUpdatePathTest | class | Drupal\Tests\layout_builder\Functional\Update | core/ |
Tests the upgrade path for Layout Builder extra fields. | ||||
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. | ||||
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 | |||
FakePhpassHashedPassword | class | Drupal\Tests\Core\Password | core/ |
A fake class for tests. | ||||
FakeRecord | in drupal:8.4.0 and is removed from drupal:9.0.0. Instead use \Drupal\Tests\system\Functional\Database\FakeRecord. |
class | Drupal\system\Tests\Database | core/ |
Fetches into a class. | |||
FakeRecord | class | Drupal\Tests\system\Functional\Database | core/ |
Fetches into a class. | 1 | |||
FakeTemplateWrapper | class | Drupal\Tests\help_topics\Unit | core/ |
Defines a fake template class to mock \Twig_TemplateWrapper. | ||||
FakeViewModeContext | class | Drupal\layout_builder_fieldblock_test\ContextProvider | core/ |
Provides a global context for view_mode for testing purposes. | 2 | |||
FallbackPluginManagerInterface | interface | Drupal\Component\Plugin | core/ |
An interface implemented by plugin managers with fallback plugin behaviors. | 5 | 5 | ||
Fast404ExceptionHtmlSubscriber | class | Drupal\Core\EventSubscriber | core/ |
High-performance 404 exception subscriber. | 2 | |||
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\aggregator\Entity | core/ |
Defines the aggregator feed entity class. | 20 | |||
Feed | class | Drupal\views\Plugin\views\display | core/ |
The plugin that handles a feed, such as RSS or atom. | ||||
FeedAccessControlHandler | class | Drupal\aggregator | core/ |
Defines an access control handler for the feed entity. | ||||
FeedAdminDisplayTest | class | Drupal\Tests\aggregator\Functional | core/ |
Tests the display of a feed on the Aggregator list page. | ||||
FeedCacheTagsTest | class | Drupal\Tests\aggregator\Functional | core/ |
Tests the Feed entity's cache tags. | ||||
FeedDeleteForm | class | Drupal\aggregator\Form | core/ |
Provides a form for deleting a feed. | ||||
FeedFetcherPluginTest | class | Drupal\Tests\aggregator\Functional | core/ |
Tests the fetcher plugins functionality and discoverability. | ||||
FeedForm | class | Drupal\aggregator | core/ |
Form handler for the aggregator feed edit forms. | ||||
FeedHalJsonAnonTest | class | Drupal\Tests\aggregator\Functional\Hal | core/ |
@group hal | ||||
FeedHalJsonBasicAuthTest | class | Drupal\Tests\aggregator\Functional\Hal | core/ |
@group hal | ||||
FeedHalJsonCookieTest | class | Drupal\Tests\aggregator\Functional\Hal | core/ |
@group hal | ||||
FeedHalJsonTestBase | abstract class | Drupal\Tests\aggregator\Functional\Hal | core/ |
4 | 1 | |||
FeedHalJsonTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\aggregator\Functional\Hal\FeedHalJsonTestBase instead. |
abstract class | Drupal\Tests\hal\Functional\EntityResource\Feed | core/ |
||||
FeedHtmlRouteProvider | class | Drupal\aggregator | core/ |
Provides HTML routes for the feed entity type. | ||||
FeedInterface | interface | Drupal\aggregator | core/ |
Provides an interface defining an aggregator feed entity. | 1 | 14 | ||
FeedItemsDeleteForm | class | Drupal\aggregator\Form | core/ |
Provides a deletion confirmation form for items that belong to a feed. | ||||
FeedJsonAnonTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest | ||||
FeedJsonBasicAuthTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest | ||||
FeedJsonCookieTest | class | Drupal\Tests\aggregator\Functional\Rest | core/ |
@group rest | ||||
FeedLanguageTest | class | Drupal\Tests\aggregator\Functional | core/ |
Tests aggregator feeds in multiple languages. | ||||
FeedParserTest | class | Drupal\Tests\aggregator\Functional | core/ |
Tests the built-in feed parser with valid feed samples. | ||||
FeedProcessorPluginTest | class | Drupal\Tests\aggregator\Functional | core/ |
Tests the processor plugins functionality and discoverability. | ||||
FeedResourceTestBase | abstract class | Drupal\Tests\aggregator\Functional\Rest | core/ |
8 | 2 | |||
FeedResourceTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\aggregator\Functional\Rest\FeedResourceTestBase instead. |
abstract class | Drupal\Tests\rest\Functional\EntityResource\Feed | core/ |
||||
FeedStorage | class | Drupal\aggregator | core/ |
Controller class for aggregator's feeds. | ||||
FeedStorageInterface | interface | Drupal\aggregator | core/ |
Defines an interface for aggregator feed entity storage classes. | 1 | 5 | ||
FeedStorageSchema | class | Drupal\aggregator | core/ |
Defines the feed schema handler. | ||||
FeedTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Feed" content entity type. | ||||
FeedTitleConstraint | class | Drupal\aggregator\Plugin\Validation\Constraint | core/ |
Supports validating feed titles. | ||||
FeedUrlConstraint | class | Drupal\aggregator\Plugin\Validation\Constraint | core/ |
Supports validating feed URLs. | ||||
FeedValidationTest | class | Drupal\Tests\aggregator\Kernel | core/ |
Tests feed validation constraints. | ||||
FeedViewBuilder | class | Drupal\aggregator | core/ |
View builder handler for aggregator feeds. |
Pagination
- Previous page
- Page 63
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.