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

Breadcrumb

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

function FieldDefinition::getUniqueIdentifier

Overrides FieldDefinitionInterface::getUniqueIdentifier

File

core/lib/Drupal/Core/Field/FieldDefinition.php, line 281

Class

FieldDefinition
A class for defining entity field definitions.

Namespace

Drupal\Core\Field

Code

public function getUniqueIdentifier() {
    return $this->getTargetEntityTypeId() . '-' . $this->getTargetBundle() . '-' . $this->getName();
}
RSS feed
Powered by Drupal