function EntityTypeInterface::hasIntegerId

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::hasIntegerId()

Checks if this entity type has an integer ID.

Return value

bool|null Returns:

  • TRUE if the entity type ID is defined as integer;
  • FALSE if the entity type ID is defined as string;
  • NULL if the entity type lacks an ID key.
1 method overrides EntityTypeInterface::hasIntegerId()
EntityType::hasIntegerId in core/lib/Drupal/Core/Entity/EntityType.php
Checks if this entity type has an integer ID.

File

core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 860

Class

EntityTypeInterface
Provides an interface for an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function hasIntegerId() : ?bool;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.