public read ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey ) | ||
$node | PHPCR\NodeInterface | |
$property | Sulu\Component\Content\Compat\PropertyInterface |
public function read(NodeInterface $node, PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey)
{
$value = $this->defaultValue;
if ($node->hasProperty($property->getName())) {
$value = $node->getPropertyValue($property->getName());
}
$property->setValue($this->decodeValue($value));
return $value;
}