Wallabag\CoreBundle\Entity\Entry::getTags PHP Method

getTags() public method

public getTags ( ) : ArrayCollection
return ArrayCollection
    public function getTags()
    {
        return $this->tags;
    }

Usage Example

 /**
  * Retrieve all tags for an entry.
  *
  * @ApiDoc(
  *      requirements={
  *          {"name"="entry", "dataType"="integer", "requirement"="\w+", "description"="The entry ID"}
  *      }
  * )
  *
  * @return JsonResponse
  */
 public function getEntriesTagsAction(Entry $entry)
 {
     $this->validateAuthentication();
     $this->validateUserAccess($entry->getUser()->getId());
     $json = $this->get('serializer')->serialize($entry->getTags(), 'json');
     return (new JsonResponse())->setJson($json);
 }
All Usage Examples Of Wallabag\CoreBundle\Entity\Entry::getTags