Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinimone committed Sep 17, 2019
1 parent 75d611b commit cbf9966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ Create a custom service and define the service in the modulename.services.yml fi
class: Drupal\module_name\ExampleBreadcrumbBuilder
arguments: ['@plugin.manager.menu.link']
tags:
- { name: breadcrumb_builder, priority: x }
- { name: custom_breadcrumb_builder, priority: x }
```
Create a file ExampleBreadcrumbBuilder.php inside the <module_name>/src folder and extend the Breadcrumb manager.
```php

namespace Drupal\<module_name>;

use Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface;
use Drupal\breadcrumb_builder\BreadcrumbBuilderInterface;
use Drupal\Core\Menu\MenuLinkInterface;
use Drupal\Core\Menu\MenuLinkManagerInterface;
use Drupal\Core\Routing\RouteMatchInterface;
Expand Down

0 comments on commit cbf9966

Please sign in to comment.