public function __get($name)
{
if ($this->__isset($name)) {
return $this->data[$name];
} else {
return;
}
}
/** * {@inheritdoc} */ public function getContentData($container) { $container = new ExcerptValueContainer($container); $data = []; foreach ($this->getExcerptStructure()->getProperties() as $property) { if ($container->__isset($property->getName())) { $property->setValue($container->__get($property->getName())); $contentType = $this->contentTypeManager->get($property->getContentTypeName()); $data[$property->getName()] = $contentType->getContentData($property); } } return $data; }