Sulu\Bundle\TagBundle\Tag\TagManagerInterface::resolveTagIds PHP Method

resolveTagIds() public method

Resolves tag ids to names.
public resolveTagIds ( $tagIds ) : array
$tagIds
return array
    public function resolveTagIds($tagIds);

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  */
 public function read(NodeInterface $node, PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey)
 {
     $data = $node->getPropertyValueWithDefault($property->getName(), '{}');
     if (is_string($data)) {
         $data = json_decode($data, true);
     }
     if (!empty($data['tags'])) {
         $data['tags'] = $this->tagManager->resolveTagIds($data['tags']);
     }
     $property->setValue($data);
 }
All Usage Examples Of Sulu\Bundle\TagBundle\Tag\TagManagerInterface::resolveTagIds