Shallow structures do not have content properties / extensions
hydrated.
public loadShallowStructureByNode ( PHPCR\NodeInterface $contentNode, string $localization, string $webspaceKey ) : Sulu\Component\Content\Compat\StructureInterface | ||
$contentNode | PHPCR\NodeInterface | |
$localization | string | |
$webspaceKey | string | |
return | Sulu\Component\Content\Compat\StructureInterface |
public function testLoadShallowStructureByNode() { $node = $this->session->getNode($this->snippet1OriginalPath); $snippet = $this->contentMapper->loadShallowStructureByNode($node, 'de', 'sulu_io'); $this->assertEquals('animal', $snippet->getKey()); $this->assertTrue(UUIDHelper::isUUID($snippet->getUuid())); }