You are here

protected function EntityTypeAlterTest::truncateRev in Workspace 8

1 call to EntityTypeAlterTest::truncateRev()
EntityTypeAlterTest::testTree in tests/src/Functional/EntityTypeAlterTest.php

File

tests/src/Functional/EntityTypeAlterTest.php, line 123

Class

EntityTypeAlterTest
Test the workspace entity.

Namespace

Drupal\Tests\workspace\Functional

Code

protected function truncateRev($rev) {
  list($i) = explode('-', $rev);
  $length = strlen($i) + 9;
  return Unicode::truncate($rev, $length, FALSE, TRUE);
}