getBreadcrumbsArray() публичный Метод

Returns an array ready to be used for breadcrumbs.
public getBreadcrumbsArray ( Knp\Menu\ItemInterface | array | string $menu, string | array | null $subItem = null ) : array
$menu Knp\Menu\ItemInterface | array | string
$subItem string | array | null
Результат array
Пример #1
0
 public function testGetBreadcrumbsArray()
 {
     $helperMock = $this->getHelperMock(array('getBreadcrumbsArray'));
     $helperMock->expects($this->any())->method('getBreadcrumbsArray')->with('default')->will($this->returnValue(array('A', 'B')));
     $helper = new MenuHelper($helperMock, $this->getMatcherMock(), $this->getManipulatorMock());
     $this->assertEquals(array('A', 'B'), $helper->getBreadcrumbsArray('default'));
 }