src/Sulu/Bundle/ContactBundle/Contact/AbstractContactManager.php
protected function addTag($contact, $data)
    {
        $success = true;
        $resolvedTag = $this->getTagManager()->findByName($data);
        $contact->addTag($resolvedTag);

        return $success;
    }
protected function addTag($contact, $data)
    {
        $success = true;
        $resolvedTag = $this->getTagManager()->findByName($data);
        $contact->addTag($resolvedTag);

        return $success;
    }
protected function addTag ( $ contact , $ data ) { $ success = true ; $ resolvedTag = $ this -> getTagManager ( ) -> findByName ( $ data ) ; $ contact -> addTag ( $ resolvedTag ) ; return $ success ; }
Adds a new tag to the given contact and persist it with the given object manager.

@param $contact
@param $data

@return bool True if there was no error, otherwise false
Adds a new tag to the given contact and persist it with the given object manager .