You are here

protected function MongodbMenuTreeStorage::encode128 in MongoDB 8

1 call to MongodbMenuTreeStorage::encode128()
MongodbMenuTreeStorage::setParents in src/MongodbMenuTreeStorage.php
Sets the materialized path field values based on the parent.

File

src/MongodbMenuTreeStorage.php, line 196
Contains \Drupal\mongodb\MongodbMenuTreeStorage .

Class

MongodbMenuTreeStorage

Namespace

Drupal\mongodb

Code

protected function encode128($number) {
  $encoded = $this
    ->doEncode128($number);
  return $this
    ->doEncode128(strlen($encoded)) . $encoded;
}