getName() public method

returns name of template.
public getName ( ) : string
return string
Exemplo n.º 1
0
 public function testLoadFromProperty()
 {
     $property = new Property('url', [], 'resource_locator');
     $node = $this->sessionManager->getContentNode('sulu_io')->addNode('test');
     $node->addMixin('sulu:content');
     $node->setProperty($property->getName(), '/test');
     $this->session->save();
     $this->resourceLocator->read($node, $property, 1, 'sulu_io', 'en');
     $this->assertEquals('/test', $property->getValue());
 }
Exemplo n.º 2
0
 /**
  * Returns data for property.
  */
 private function getPropertyData($document, LegacyProperty $property)
 {
     return $document->getStructure()->getContentViewProperty($property->getName())->getValue();
 }