protected function MultiversionManagerTest::extractRevisionHash in Multiversion 8
1 call to MultiversionManagerTest::extractRevisionHash()
- MultiversionManagerTest::testRevisionIdGeneration in tests/
src/ Functional/ MultiversionManagerTest.php
File
- tests/
src/ Functional/ MultiversionManagerTest.php, line 32
Class
- MultiversionManagerTest
- Test the MultiversionManager class.
Namespace
Drupal\Tests\multiversion\FunctionalCode
protected function extractRevisionHash($rev) {
preg_match('/\\d\\-(' . self::REVISION_HASH_REGEX . ')/', $rev, $matches);
return isset($matches[1]) ? $matches[1] : FALSE;
}