Sulu\Component\Content\Compat\PropertyInterface::getValue PHP Method

getValue() public method

gets the value from property.
public getValue ( ) : mixed
return mixed
    public function getValue();

Usage Example

コード例 #1
0
ファイル: TagList.php プロジェクト: sulu/sulu
 /**
  * {@inheritdoc}
  */
 public function write(NodeInterface $node, PropertyInterface $property, $userId, $webspaceKey, $languageCode, $segmentKey)
 {
     $tagIds = [];
     $tags = $property->getValue() === null ? [] : $property->getValue();
     foreach ($tags as $tag) {
         $tagIds[] = $this->tagManager->findOrCreateByName($tag, $userId)->getId();
     }
     $node->setProperty($property->getName(), $tagIds);
 }
All Usage Examples Of Sulu\Component\Content\Compat\PropertyInterface::getValue