getItemClass() public method

Get the li classes as text
public getItemClass ( ) : string
return string
Esempio n. 1
0
 public function testGetItemClassNormalizeName()
 {
     $item = new \ElggMenuItem('name_underscore', 'text', 'url');
     $this->assertEquals('elgg-menu-item-name-underscore', $item->getItemClass());
     $item = new \ElggMenuItem('name space', 'text', 'url');
     $this->assertEquals('elgg-menu-item-name-space', $item->getItemClass());
     $item = new \ElggMenuItem('name:colon', 'text', 'url');
     $this->assertEquals('elgg-menu-item-name-colon', $item->getItemClass());
 }