generate() публичный Метод

generates a resource locator with given title.
public generate ( string[] $parts, null | string $parentUuid, string $webspaceKey, string $languageCode, string $templateKey, null | string $segmentKey = null ) : string
$parts string[] parts of title
$parentUuid null | string uuid of parent node (can be null)
$webspaceKey string
$languageCode string
$templateKey string
$segmentKey null | string
Результат string
 public function testGenerate()
 {
     $structure = $this->prepareGenerateTestData();
     $result = $this->repository->generate(['title' => 'test'], $structure->getUuid(), null, 'sulu_io', 'en', 'overview');
     $this->assertEquals('/test/test', $result['resourceLocator']);
 }