function FieldItemBase::mainPropertyName
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::mainPropertyName()
- 10 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::mainPropertyName()
- 11.x core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::mainPropertyName()
Overrides FieldItemInterface::mainPropertyName
8 methods override FieldItemBase::mainPropertyName()
- CommentItem::mainPropertyName in core/
modules/ comment/ src/ Plugin/ Field/ FieldType/ CommentItem.php - Returns the name of the main property, if any.
- EntityReferenceItem::mainPropertyName in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ EntityReferenceItem.php - Returns the name of the main property, if any.
- LayoutSectionItem::mainPropertyName in core/
modules/ layout_builder/ src/ Plugin/ Field/ FieldType/ LayoutSectionItem.php - Returns the name of the main property, if any.
- LinkItem::mainPropertyName in core/
modules/ link/ src/ Plugin/ Field/ FieldType/ LinkItem.php - Returns the name of the main property, if any.
- MapItem::mainPropertyName in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ MapItem.php - Returns the name of the main property, if any.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php, line 39
Class
- FieldItemBase
- An entity field item.
Namespace
Drupal\Core\FieldCode
public static function mainPropertyName() {
return 'value';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.