/** * {@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()); }
public function indexCallback(StructureInterface $structure, $preview = false, $partial = false) { return new Response($this->render($structure->getPropertyValue('title'), $structure->getPropertyValue('article'), $structure->getPropertyValue('block'), $partial)); }