Sulu\Bundle\AdminBundle\Navigation\NavigationItem::getIcon PHP Method

getIcon() public method

Returns the action of the NavigationItem.
public getIcon ( ) : string
return string
    public function getIcon()
    {
        return $this->icon;
    }

Usage Example

Example #1
0
 public function testCopyChildless()
 {
     $copy = $this->item1->copyChildless();
     $this->assertEquals($this->item1->getAction(), $copy->getAction());
     $this->assertEquals($this->item1->getIcon(), $copy->getIcon());
     $this->assertEquals($this->item1->getHeaderIcon(), $copy->getHeaderIcon());
     $this->assertEquals($this->item1->getHeaderTitle(), $copy->getHeaderTitle());
     $this->assertEquals($this->item1->getId(), $copy->getId());
 }