PHP code example of mikamatto / breadcrumbs-bundle
1. Go to this page and download the library: Download mikamatto/breadcrumbs-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mikamatto / breadcrumbs-bundle example snippets
public function index(BreadcrumbsProcessor $breadcrumbsProcessor)
{
$breadcrumbs = $breadcrumbsProcessor->generateBreadcrumbs('app_page_show', ['id' => 1]);
// Result based on example YAML above:
// [
// ['label' => 'Pages', 'url' => '/page/'],
// ['label' => 'Page Details', 'url' => '/page/1']
// ]
}
[
['label' => 'Pages', 'url' => '/page/'],
['label' => 'Page Details', 'url' => '/page/1']
]