/**
* {@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);
}