function _comment_entity_uses_integer_id
Same name and namespace in other branches
- 11.x core/modules/comment/comment.module \_comment_entity_uses_integer_id()
- 10 core/modules/comment/comment.module \_comment_entity_uses_integer_id()
- 9 core/modules/comment/comment.module \_comment_entity_uses_integer_id()
- 8.9.x core/modules/comment/comment.module \_comment_entity_uses_integer_id()
Determines if an entity type is using an integer-based ID definition.
Parameters
string $entity_type_id: The ID the represents the entity type.
Return value
bool Returns TRUE if the entity type has an integer-based ID definition and FALSE otherwise.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Entity\EntityTypeInterface::hasIntegerId() instead.
See also
https://www.drupal.org/node/3566814
File
-
core/
modules/ comment/ comment.module, line 22
Code
function _comment_entity_uses_integer_id($entity_type_id) {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal\\Core\\Entity\\EntityTypeInterface::hasIntegerId() instead. See https://www.drupal.org/node/3566814', E_USER_DEPRECATED);
return \Drupal::entityTypeManager()->getDefinition($entity_type_id)
->hasIntegerId();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.