Sulu\Bundle\TagBundle\Entity\Tag::getId PHP Method

getId() public method

Get id.
public getId ( ) : integer
return integer
    public function getId()
    {
        return $this->id;
    }

Usage Example

 private function initPages()
 {
     $this->team = $this->savePage('simple', ['title' => 'Team', 'url' => '/team'], $this->session->getNode('/cmf/sulu_io/contents')->getIdentifier());
     $this->johannes = $this->savePage('simple', ['title' => 'Johannes', 'url' => '/team/johannes'], $this->team->getUuid(), [$this->tag1->getId()]);
     $this->daniel = $this->savePage('simple', ['title' => 'Daniel', 'url' => '/team/daniel'], $this->team->getUuid());
     $this->thomas = $this->savePage('simple', ['title' => 'Thomas', 'url' => '/team/thomas'], $this->team->getUuid());
 }
All Usage Examples Of Sulu\Bundle\TagBundle\Entity\Tag::getId