getContext() public method

Get an array of context strings
public getContext ( ) : array
return array
Exemplo n.º 1
0
 public function testSetContextWithArray()
 {
     $item = new \ElggMenuItem('name', 'text', 'url');
     $item->setContext(array('mine'));
     $this->assertEquals(array('mine'), $item->getContext());
 }