function OverridesSectionStorage::hasIntegerId

Same name and namespace in other branches
  1. 11.x core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::hasIntegerId()
  2. 10 core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::hasIntegerId()
  3. 9 core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::hasIntegerId()
  4. 8.9.x core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::hasIntegerId()

Determines if this entity type's ID is stored as an integer.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: An entity type.

Return value

bool TRUE if this entity type's ID key is always an integer, 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/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php, line 254

Class

OverridesSectionStorage
Defines the 'overrides' section storage type.

Namespace

Drupal\layout_builder\Plugin\SectionStorage

Code

protected function hasIntegerId(EntityTypeInterface $entity_type) {
  @trigger_error(__METHOD__ . "() 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 $entity_type->hasIntegerId();
}

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