addItemClass() public méthode

Add a li class
Since: 1.9.0
public addItemClass ( mixed $class ) : void
$class mixed An array of class names, or a single string class name.
Résultat void
 public function testGetItemClass()
 {
     $item = new \ElggMenuItem('name', 'text', 'url');
     $item->setItemClass('new-link');
     $item->addItemClass(array('2nd-link'));
     $this->assertEquals('elgg-menu-item-name new-link 2nd-link', $item->getItemClass());
 }