getReferencedUuids() public method

Return the UUIDs that are referenced by this content type for the given PropertyInterface instance.
public getReferencedUuids ( Sulu\Component\Content\Compat\PropertyInterface $property ) : array
$property Sulu\Component\Content\Compat\PropertyInterface
return array
Beispiel #1
0
 public function testGetReferencedUuids()
 {
     $pageNode = $this->session->getNode('/cmf/sulu_io/contents/hotels');
     $pageStructure = $this->contentMapper->loadByNode($pageNode, 'en', 'sulu_io', true, false, false);
     $property = $pageStructure->getProperty('hotels');
     $uuids = $this->contentType->getReferencedUuids($property);
     $this->assertCount(2, $uuids);
     foreach ($uuids as $uuid) {
         $this->assertTrue(UUIDHelper::isUuid($uuid));
     }
 }