getPropertyValue() public method

return value of property with given name.
public getPropertyValue ( $name ) : mixed
$name string name of property
return mixed
示例#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());
 }
示例#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));
 }