Classes, traits, and interfaces - 11.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 1519
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
EntityReference | class | Drupal\views\Plugin\views\filter | core/ |
Filters a view by entity references. | 1 | |||
EntityReference | class | Drupal\views\Plugin\views\filter | core/ |
Filters a view by entity references. | 1 | |||
EntityReference | class | Drupal\views\Plugin\views\style | core/ |
EntityReference style plugin. | ||||
EntityReference | class | Drupal\Core\Entity\Plugin\DataType | core/ |
Defines an 'entity_reference' data type. | 2 | |||
EntityReference | class | Drupal\Core\Entity\Plugin\DataType | core/ |
Defines an 'entity_reference' data type. | 2 | |||
EntityReference | class | Drupal\field\Plugin\migrate\field\d7 | core/ |
MigrateField plugin for Drupal 7 entity_reference fields. | ||||
EntityReferenceAdminTest | class | Drupal\Tests\field\FunctionalJavascript\EntityReference | core/ |
Tests for the administrative UI. | ||||
EntityReferenceAdminTest | class | Drupal\Tests\field\Functional\EntityReference | core/ |
Tests for the administrative UI. | ||||
EntityReferenceArgument | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler to accept an entity reference ID value. | ||||
EntityReferenceAutocompleteTagsWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'entity_reference_autocomplete_tags' widget. | ||||
EntityReferenceAutocompleteWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'entity_reference_autocomplete' widget. | 1 | |||
EntityReferenceAutocompleteWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'entity_reference_autocomplete' widget. | 1 | |||
EntityReferenceAutocompleteWidgetTest | class | Drupal\FunctionalJavascriptTests\EntityReference | core/ |
Tests the output of entity reference autocomplete widgets. | ||||
EntityReferenceAutoCreateTest | class | Drupal\Tests\field\Functional\EntityReference | core/ |
Tests creating new entity (e.g. taxonomy-term) from an autocomplete widget. | ||||
EntityReferenceEntityFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'entity reference rendered entity' formatter. | 2 | |||
EntityReferenceEntityFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'entity reference rendered entity' formatter. | 2 | |||
EntityReferenceFieldCreationTest | class | Drupal\Tests\system\Functional\Entity | core/ |
Tests creating entity reference fields in the UI. | ||||
EntityReferenceFieldCreationTrait | trait | Drupal\Tests\field\Traits | core/ |
Provides common functionality for the EntityReference test classes. | 48 | |||
EntityReferenceFieldCreationTrait | trait | Drupal\Tests\field\Traits | core/ |
Provides common functionality for the EntityReference test classes. | 48 | |||
EntityReferenceFieldDefaultValueTest | class | Drupal\Tests\field\Functional\EntityReference | core/ |
Tests entity reference field default values storage in CMI. | ||||
EntityReferenceFieldItemList | class | Drupal\Core\Field | core/ |
Defines an item list class for entity reference fields. | 2 | 6 | ||
EntityReferenceFieldItemList | class | Drupal\Core\Field | core/ |
Defines an item list class for entity reference fields. | 2 | 6 | ||
EntityReferenceFieldItemList | class | Drupal\Core\Field | core/ |
Defines an item list class for entity reference fields. | 2 | 6 | ||
EntityReferenceFieldItemList | class | Drupal\Core\Field | core/ |
Defines an item list class for entity reference fields. | 2 | 6 | ||
EntityReferenceFieldItemListInterface | interface | Drupal\Core\Field | core/ |
Interface for entity reference lists of field items. | 1 | 8 | ||
EntityReferenceFieldItemListInterface | interface | Drupal\Core\Field | core/ |
Interface for entity reference lists of field items. | 1 | 8 | ||
EntityReferenceFieldItemListInterface | interface | Drupal\Core\Field | core/ |
Interface for entity reference lists of field items. | 1 | 8 | ||
EntityReferenceFieldItemListInterface | interface | Drupal\Core\Field | core/ |
Interface for entity reference lists of field items. | 1 | 8 | ||
EntityReferenceFieldItemNormalizer | class | Drupal\serialization\Normalizer | core/ |
Adds the file URI to embedded file entities. | 1 | 2 | ||
EntityReferenceFieldItemNormalizer | class | Drupal\serialization\Normalizer | core/ |
Adds the file URI to embedded file entities. | 1 | 2 | ||
EntityReferenceFieldItemNormalizer | class | Drupal\serialization\Normalizer | core/ |
Adds the file URI to embedded file entities. | 1 | 2 | ||
EntityReferenceFieldItemNormalizer | class | Drupal\serialization\Normalizer | core/ |
Adds the file URI to embedded file entities. | 1 | 2 | ||
EntityReferenceFieldItemNormalizerTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Tests Drupal\serialization\Normalizer\EntityReferenceFieldItemNormalizer. | ||||
EntityReferenceFieldItemNormalizerTrait | trait | Drupal\serialization\Normalizer | core/ |
Converts empty reference values for entity reference items. | ||||
EntityReferenceFieldNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizer class specific for entity reference field objects. | ||||
EntityReferenceFieldTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests for the entity reference field. | ||||
EntityReferenceFieldTranslatedReferenceViewTest | class | Drupal\Tests\field\Functional\EntityReference | core/ |
Tests the translation of entity reference field display on nodes. | ||||
EntityReferenceFileUploadTest | class | Drupal\Tests\field\Functional\EntityReference | core/ |
Tests an autocomplete widget with file upload. | ||||
EntityReferenceFormatterBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Parent plugin for entity reference formatters. | 7 | 4 | ||
EntityReferenceFormatterBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Parent plugin for entity reference formatters. | 7 | 4 | ||
EntityReferenceFormatterBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Parent plugin for entity reference formatters. | 7 | 4 | ||
EntityReferenceFormatterBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Parent plugin for entity reference formatters. | 7 | 4 | ||
EntityReferenceFormatterTest | class | Drupal\Tests\field\Kernel\EntityReference | core/ |
Tests the formatters functionality. | ||||
EntityReferenceIdFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'entity reference ID' formatter. | ||||
EntityReferenceIntegrationTest | class | Drupal\Tests\field\Functional\EntityReference | core/ |
Tests various Entity reference UI components. | ||||
EntityReferenceItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'entity_reference' entity field type. | 3 | 15 | ||
EntityReferenceItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'entity_reference' entity field type. | 3 | 15 | ||
EntityReferenceItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'entity_reference' entity field type. | 3 | 15 | ||
EntityReferenceItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'entity_reference' entity field type. | 3 | 15 | ||
EntityReferenceItemBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Base class for field items referencing other entities. | 1 |
Pagination
- Previous page
- Page 111
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.