EntityReferenceItem::fieldSettingsAjaxProcessElement |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Adds the field settings to AJAX form elements. |
EntityReferenceItem::fieldSettingsForm |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns a form for the field-level settings. |
EntityReferenceItem::fieldSettingsFormValidate |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Form element validation handler; Invokes selection plugin's validation. |
EntityReferenceItem::fieldSettingsSummary |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns a short summary of the field's field-level settings. |
EntityReferenceItem::formProcessMergeParent |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Render API callback that moves entity reference elements up a level. |
EntityReferenceItem::generateSampleValue |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Generates placeholder field values. |
EntityReferenceItem::getConstraints |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Gets a list of validation constraints. |
EntityReferenceItem::getPossibleOptions |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns an array of possible values with labels for display. |
EntityReferenceItem::getPossibleValues |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns an array of possible values. |
EntityReferenceItem::getPreconfiguredOptions |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns preconfigured field options for a field type. |
EntityReferenceItem::getRandomBundle |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Gets a bundle for a given entity type and selection options. |
EntityReferenceItem::getReferenceableBundles |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns the referenceable entity types and bundles. |
EntityReferenceItem::getSettableOptions |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns an array of settable values with labels for display. |
EntityReferenceItem::getSettableValues |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns an array of settable values. |
EntityReferenceItem::getValue |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Gets the data value. |
EntityReferenceItem::hasNewEntity |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Determines whether the item holds an unsaved entity. |
EntityReferenceItem::isEmpty |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Determines whether the data structure is empty. |
EntityReferenceItem::mainPropertyName |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns the name of the main property, if any. |
EntityReferenceItem::onChange |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
React to changes to a child property or item. |
EntityReferenceItem::onDependencyRemoval |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Informs the plugin that a dependency of the field will be deleted. |
EntityReferenceItem::preSave |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Defines custom presave behavior for field values. |
EntityReferenceItem::propertyDefinitions |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Defines field item properties. |
EntityReferenceItem::schema |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns the schema for the field. |
EntityReferenceItem::settingsAjaxSubmit |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Submit handler for the non-JS case. |
EntityReferenceItem::setValue |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Overrides \Drupal\Core\TypedData\TypedData::setValue(). |
EntityReferenceItem::storageSettingsForm |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns a form for the storage-level settings. |
EntityReferenceItem::storageSettingsSummary |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php |
Returns a short summary of the field's storage-level settings. |
EntityReferenceItemBase |
class |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemBase.php |
Base class for field items referencing other entities. |
EntityReferenceItemBase.php |
file |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemBase.php |
|
EntityReferenceItemInterface |
interface |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemInterface.php |
Interface definition for field items referencing other entities. |
EntityReferenceItemInterface.php |
file |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemInterface.php |
|
EntityReferenceItemInterface::getReferenceableBundles |
function |
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemInterface.php |
Returns the referenceable entity types and bundles. |
EntityReferenceItemSubclass |
class |
core/modules/media_library/tests/modules/media_library_test/src/Plugin/Field/FieldType/EntityReferenceItemSubclass.php |
Plugin implementation of the 'entity_reference_subclass' field type. |
EntityReferenceItemSubclass.php |
file |
core/modules/media_library/tests/modules/media_library_test/src/Plugin/Field/FieldType/EntityReferenceItemSubclass.php |
|
EntityReferenceItemTest |
class |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Tests the new entity API for the entity reference field type. |
EntityReferenceItemTest.php |
file |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
|
EntityReferenceItemTest::$entityStringId |
property |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
The test entity with a string ID. |
EntityReferenceItemTest::$modules |
property |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Modules to install. |
EntityReferenceItemTest::$term |
property |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
The taxonomy term to test with. |
EntityReferenceItemTest::$vocabulary |
property |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
The taxonomy vocabulary to test with. |
EntityReferenceItemTest::setUp |
function |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Sets up the test. |
EntityReferenceItemTest::testAutocreateValidation |
function |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Tests ValidReferenceConstraint with newly created and unsaved entities. |
EntityReferenceItemTest::testConfigEntityReferenceItem |
function |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Tests the entity reference field type for referencing config entities. |
EntityReferenceItemTest::testContentEntityReferenceItem |
function |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Tests the entity reference field type for referencing content entities. |
EntityReferenceItemTest::testContentEntityReferenceItemWithStringId |
function |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Tests referencing content entities with string IDs. |
EntityReferenceItemTest::testEntityAutoCreate |
function |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Tests entity auto create. |
EntityReferenceItemTest::testEntitySaveOrder |
function |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Tests saving order sequence doesn't matter. |
EntityReferenceItemTest::testGenerateSampleValue |
function |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Tests the ::generateSampleValue() method. |
EntityReferenceItemTest::testGenerateSampleValueCircularReference |
function |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Tests the ::generateSampleValue() method when it has a circular reference. |
EntityReferenceItemTest::testSelectionHandlerSettings |
function |
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php |
Tests that the 'handler' field setting stores the proper plugin ID. |