getPropertyValue() public method

return value of property with given name.
public getPropertyValue ( $name ) : mixed
$name string name of property
return mixed
Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function copyFrom(StructureInterface $structure)
 {
     foreach ($this->getProperties(true) as $property) {
         if ($structure->hasProperty($property->getName())) {
             $property->setValue($structure->getPropertyValue($property->getName()));
         }
     }
     $this->setDocument($structure->getDocument());
 }
Ejemplo n.º 2
0
 public function indexCallback(StructureInterface $structure, $preview = false, $partial = false)
 {
     return new Response($this->render($structure->getPropertyValue('title'), $structure->getPropertyValue('article'), $structure->getPropertyValue('block'), $partial));
 }