Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldItemBase.php

function FieldItemBase::mainPropertyName

Overrides FieldItemInterface::mainPropertyName

5 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.
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.
PathItem::mainPropertyName in core/modules/path/src/Plugin/Field/FieldType/PathItem.php
Returns the name of the main property, if any.

File

core/lib/Drupal/Core/Field/FieldItemBase.php, line 53

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

public static function mainPropertyName() {
    return 'value';
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal