getTags() public method

Get an array with the tags.
public getTags ( ) : array
return array
 /**
  * @param TaggableItemInterface $item
  *
  * @return $this
  */
 protected function saveTags(TaggableItemInterface $item)
 {
     $tags = $item->getTags();
     foreach ($tags as $tag) {
         $this->appendListItem($this->getTagKey($tag), $item->getKey());
     }
     return $this;
 }