public importData ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $value, $userId, $webspaceKey, $languageCode, $segmentKey = null ) | ||
$node | PHPCR\NodeInterface | |
$property | Sulu\Component\Content\Compat\PropertyInterface |
public function importData(NodeInterface $node, PropertyInterface $property, $value, $userId, $webspaceKey, $languageCode, $segmentKey = null)
{
$property->setValue($value);
$this->write($node, $property, $userId, $webspaceKey, $languageCode, $segmentKey);
}
/** * {@inheritdoc} */ public function importData(NodeInterface $node, PropertyInterface $property, $value, $userId, $webspaceKey, $languageCode, $segmentKey = null) { $preparedValue = true; if ($value === '0') { $preparedValue = false; } parent::importData($node, $property, $preparedValue, $userId, $webspaceKey, $languageCode, $segmentKey); }