protected function EntityIndex::buildKey in Multiversion 8
Same name and namespace in other branches
- 8.2 src/Entity/Index/EntityIndex.php \Drupal\multiversion\Entity\Index\EntityIndex::buildKey()
Helper method for building the key to be indexed.
Parameters
\Drupal\Core\Entity\EntityInterface $entity:
Return value
string
1 call to EntityIndex::buildKey()
- EntityIndex::addMultiple in src/Entity/ Index/ EntityIndex.php 
2 methods override EntityIndex::buildKey()
- RevisionIndex::buildKey in src/Entity/ Index/ RevisionIndex.php 
- Helper method for building the key to be indexed.
- UuidIndex::buildKey in src/Entity/ Index/ UuidIndex.php 
- Helper method for building the key to be indexed.
File
- src/Entity/ Index/ EntityIndex.php, line 118 
Class
Namespace
Drupal\multiversion\Entity\IndexCode
protected function buildKey(EntityInterface $entity) {
  return $entity
    ->getEntityTypeId() . ':' . $entity
    ->id();
}