本文整理汇总了PHP中Sonata\AdminBundle\Admin\Admin::getBreadcrumbs方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin::getBreadcrumbs方法的具体用法?PHP Admin::getBreadcrumbs怎么用?PHP Admin::getBreadcrumbs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sonata\AdminBundle\Admin\Admin
的用法示例。
在下文中一共展示了Admin::getBreadcrumbs方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getBreadcrumbs
public function getBreadcrumbs($action)
{
$breadcrumbs = parent::getBreadcrumbs($action);
if ($action == 'edit' && $this->getRequest()->get('minimized')) {
$breadcrumbs = array(array_pop($breadcrumbs));
}
return $breadcrumbs;
}
示例2: getBreadcrumbs
/**
* {@inheritdoc}
*/
public function getBreadcrumbs($action)
{
$breadcrumbs = parent::getBreadcrumbs($action);
$menu = $this->menuFactory->createItem('root');
$menu = $menu->addChild($this->trans($this->getLabelTranslatorStrategy()->getLabel('publication_type_list', 'breadcrumb', 'link')), array('uri' => $this->routeGenerator->generate('fenrizbes_publication_type_list')));
array_splice($breadcrumbs, 1, 0, array($menu));
/** @var MenuItem $banner_list_menu */
$banner_list_menu = $breadcrumbs[2];
$banner_list_menu->setName($this->trans($this->getLabelTranslatorStrategy()->getLabel(sprintf('%s_list', $this->getClassnameLabel()), 'breadcrumb', 'link')) . ' "' . $this->getPublicationType()->getTitle() . '"');
return $breadcrumbs;
}
示例3: getBreadcrumbs
public function getBreadcrumbs($action)
{
$breadcrumbs = parent::getBreadcrumbs($action);
$menu = $this->menuFactory->createItem('root');
$menu = $menu->addChild($this->trans($this->getLabelTranslatorStrategy()->getLabel('fc_request_list', 'breadcrumb', 'link')), array('uri' => $this->routeGenerator->generate('fenrizbes_fc_request_list', array('form_id' => 0))));
if ($this->getRequest()->get('form_id')) {
array_splice($breadcrumbs, 1, 0, array($menu));
/** @var MenuItem $banner_list_menu */
$banner_list_menu = $breadcrumbs[2];
$banner_list_menu->setName($this->getFcForm()->getTitle());
}
return $breadcrumbs;
}
示例4: getBreadcrumbs
/**
* @param string $action
* @return array|void
*/
public function getBreadcrumbs($action)
{
return parent::getBreadcrumbs('list');
}
示例5: getBreadcrumbs
/**
* @param string $action
* @return array
*/
public function getBreadcrumbs($action)
{
$res = parent::getBreadcrumbs($action);
array_shift($res);
return $res;
}