Classes, traits, and interfaces - 9.5.x - drupal

Primary tabs

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 1523

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
Feed class Drupal\views\Plugin\views\display core/modules/views/src/Plugin/views/display/Feed.php The plugin that handles a feed, such as RSS or atom.
FeedAccessControlHandler class Drupal\aggregator core/modules/aggregator/src/FeedAccessControlHandler.php Defines an access control handler for the feed entity.
FeedAdminDisplayTest class Drupal\Tests\aggregator\Functional core/modules/aggregator/tests/src/Functional/FeedAdminDisplayTest.php Tests the display of a feed on the Aggregator list page.
FeedCacheTagsTest class Drupal\Tests\aggregator\Functional core/modules/aggregator/tests/src/Functional/FeedCacheTagsTest.php Tests the Feed entity's cache tags.
FeedDeleteForm class Drupal\aggregator\Form core/modules/aggregator/src/Form/FeedDeleteForm.php Provides a form for deleting a feed.
FeedFetcherPluginTest class Drupal\Tests\aggregator\Functional core/modules/aggregator/tests/src/Functional/FeedFetcherPluginTest.php Tests the fetcher plugins functionality and discoverability.
FeedForm class Drupal\aggregator core/modules/aggregator/src/FeedForm.php Form handler for the aggregator feed edit forms.
FeedHalJsonAnonTest class Drupal\Tests\hal\Functional\aggregator core/modules/hal/tests/src/Functional/aggregator/FeedHalJsonAnonTest.php @group hal @group legacy
FeedHalJsonBasicAuthTest class Drupal\Tests\hal\Functional\aggregator core/modules/hal/tests/src/Functional/aggregator/FeedHalJsonBasicAuthTest.php @group hal @group legacy
FeedHalJsonCookieTest class Drupal\Tests\hal\Functional\aggregator core/modules/hal/tests/src/Functional/aggregator/FeedHalJsonCookieTest.php @group hal @group legacy
FeedHalJsonTestBase abstract class Drupal\Tests\hal\Functional\aggregator core/modules/hal/tests/src/Functional/aggregator/FeedHalJsonTestBase.php 3
FeedHtmlRouteProvider class Drupal\aggregator core/modules/aggregator/src/FeedHtmlRouteProvider.php Provides HTML routes for the feed entity type.
FeedInterface interface Drupal\aggregator core/modules/aggregator/src/FeedInterface.php Provides an interface defining an aggregator feed entity. 1 13
FeedItemsDeleteForm class Drupal\aggregator\Form core/modules/aggregator/src/Form/FeedItemsDeleteForm.php Provides a deletion confirmation form for items that belong to a feed.
FeedJsonAnonTest class Drupal\Tests\aggregator\Functional\Rest core/modules/aggregator/tests/src/Functional/Rest/FeedJsonAnonTest.php @group rest @group legacy
FeedJsonBasicAuthTest class Drupal\Tests\aggregator\Functional\Rest core/modules/aggregator/tests/src/Functional/Rest/FeedJsonBasicAuthTest.php @group rest @group legacy
FeedJsonCookieTest class Drupal\Tests\aggregator\Functional\Rest core/modules/aggregator/tests/src/Functional/Rest/FeedJsonCookieTest.php @group rest @group legacy
FeedLanguageTest class Drupal\Tests\aggregator\Functional core/modules/aggregator/tests/src/Functional/FeedLanguageTest.php Tests aggregator feeds in multiple languages.
FeedParserTest class Drupal\Tests\aggregator\Functional core/modules/aggregator/tests/src/Functional/FeedParserTest.php Tests the built-in feed parser with valid feed samples.
FeedProcessorPluginTest class Drupal\Tests\aggregator\Functional core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php Tests the processor plugins functionality and discoverability.
FeedResourceTestBase abstract class Drupal\Tests\aggregator\Functional\Rest core/modules/aggregator/tests/src/Functional/Rest/FeedResourceTestBase.php 7 1
FeedStorage class Drupal\aggregator core/modules/aggregator/src/FeedStorage.php Defines the storage handler class for feed entities.
FeedStorageInterface interface Drupal\aggregator core/modules/aggregator/src/FeedStorageInterface.php Defines an interface for aggregator feed entity storage classes. 1 5
FeedStorageSchema class Drupal\aggregator core/modules/aggregator/src/FeedStorageSchema.php Defines the feed schema handler.
FeedTest class Drupal\Tests\aggregator\Functional\Jsonapi core/modules/aggregator/tests/src/Functional/Jsonapi/FeedTest.php JSON:API integration test for the "Feed" content entity type.
FeedTitleConstraint class Drupal\aggregator\Plugin\Validation\Constraint core/modules/aggregator/src/Plugin/Validation/Constraint/FeedTitleConstraint.php Supports validating feed titles.
FeedUrlConstraint class Drupal\aggregator\Plugin\Validation\Constraint core/modules/aggregator/src/Plugin/Validation/Constraint/FeedUrlConstraint.php Supports validating feed URLs.
FeedValidationTest class Drupal\Tests\aggregator\Kernel core/modules/aggregator/tests/src/Kernel/FeedValidationTest.php Tests feed validation constraints.
FeedViewBuilder class Drupal\aggregator core/modules/aggregator/src/FeedViewBuilder.php View builder handler for aggregator feeds.
FeedXmlAnonTest class Drupal\Tests\aggregator\Functional\Rest core/modules/aggregator/tests/src/Functional/Rest/FeedXmlAnonTest.php @group rest @group legacy
FeedXmlBasicAuthTest class Drupal\Tests\aggregator\Functional\Rest core/modules/aggregator/tests/src/Functional/Rest/FeedXmlBasicAuthTest.php @group rest @group legacy
FeedXmlCookieTest class Drupal\Tests\aggregator\Functional\Rest core/modules/aggregator/tests/src/Functional/Rest/FeedXmlCookieTest.php @group rest @group legacy
FetcherInterface interface Drupal\aggregator\Plugin core/modules/aggregator/src/Plugin/FetcherInterface.php Defines an interface for aggregator fetcher implementations. 2 2
FetchTest class Drupal\KernelTests\Core\Database core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Tests the Database system's various fetch capabilities.
Fid class Drupal\aggregator\Plugin\views\argument core/modules/aggregator/src/Plugin/views/argument/Fid.php Argument handler to accept an aggregator feed id.
Fid class Drupal\file\Plugin\views\argument core/modules/file/src/Plugin/views/argument/Fid.php Argument handler to accept multiple file ids.
Field class Drupal\field\Plugin\migrate\source\d6 core/modules/field/src/Plugin/migrate/source/d6/Field.php Drupal 6 field source from database. 1
Field class Drupal\field\Plugin\migrate\source\d7 core/modules/field/src/Plugin/migrate/source/d7/Field.php Drupal 7 field source from database. 1
FieldableEntity abstract class Drupal\migrate_drupal\Plugin\migrate\source\d7 core/modules/migrate_drupal/src/Plugin/migrate/source/d7/FieldableEntity.php Base class for D7 source plugins which need to collect field values. 8 8
FieldableEntityDefinitionUpdateTest class Drupal\KernelTests\Core\Entity core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php Tests EntityDefinitionUpdateManager's fieldable entity update functionality.
FieldableEntityInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/FieldableEntityInterface.php Interface for entities having fields. 1 92
FieldableEntityNormalizerTrait trait Drupal\serialization\Normalizer core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php A trait for providing fieldable entity normalization/denormalization methods. 2
FieldableEntityStorageInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/FieldableEntityStorageInterface.php A storage that supports entity types with field definitions. 1 3
FieldAccessTest class Drupal\KernelTests\Core\Field core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php Tests Field level access hooks.
FieldAccessTest class Drupal\Tests\field\Functional core/modules/field/tests/src/Functional/FieldAccessTest.php Tests Field access.
FieldApiDataTest class Drupal\Tests\views\Kernel core/modules/views/tests/src/Kernel/FieldApiDataTest.php Tests the Field Views data.
FieldAPIHandlerTrait trait Drupal\views core/modules/views/src/FieldAPIHandlerTrait.php A trait containing helper methods for field definitions. 7
FieldAttachOtherTest class Drupal\Tests\field\Kernel core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php Tests other Field API functions.
FieldAttachStorageTest class Drupal\Tests\field\Kernel core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php Tests storage-related Field Attach API functions.
FieldBlock class Drupal\layout_builder\Plugin\Block core/modules/layout_builder/src/Plugin/Block/FieldBlock.php Provides a block that renders a field from an entity. 1 2

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.