function EntityType::hasIntegerId
Same name and namespace in other branches
- main core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::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.
Overrides EntityTypeInterface::hasIntegerId
1 method overrides EntityType::hasIntegerId()
- ContentEntityType::hasIntegerId in core/
lib/ Drupal/ Core/ Entity/ ContentEntityType.php - Checks if this entity type has an integer ID.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityType.php, line 985
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function hasIntegerId() : ?bool {
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.