protected function EntityBuffer::getBufferId in GraphQL 8.4
Same name and namespace in other branches
- 8.3 src/GraphQL/Buffers/EntityBuffer.php \Drupal\graphql\GraphQL\Buffers\EntityBuffer::getBufferId()
Returns the bucket name for grouping items together.
Parameters
object $item: The item to get the buffer id for.
Return value
string The buffer id.
Overrides BufferBase::getBufferId
File
- src/
GraphQL/ Buffers/ EntityBuffer.php, line 52
Class
- EntityBuffer
- Collects entity IDs per entity type and loads them all at once in the end.
Namespace
Drupal\graphql\GraphQL\BuffersCode
protected function getBufferId($item) {
return $item['type'];
}