Commit 1594e522 authored by alexpott's avatar alexpott

Issue #2283385 by jibran | vijaycs85: Remove BreadcrumbBuilderBase.

parent 7c61f7ba
<?php
/**
* @file
* Contains \Drupal\Core\Breadcrumb\BreadcrumbBuilderBase.
*/
namespace Drupal\Core\Breadcrumb;
use Drupal\Core\Routing\LinkGeneratorTrait;
use Drupal\Core\StringTranslation\StringTranslationTrait;
/**
* Defines a common base class for breadcrumb builders adding a link generator.
*
* @todo This class is now vestigial. Remove it and use the traits in
* breadcrumb builders directly.
*/
abstract class BreadcrumbBuilderBase implements BreadcrumbBuilderInterface {
use StringTranslationTrait;
use LinkGeneratorTrait;
}
......@@ -8,16 +8,20 @@
namespace Drupal\book;
use Drupal\Core\Access\AccessManager;
use Drupal\Core\Breadcrumb\BreadcrumbBuilderBase;
use Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Routing\LinkGeneratorTrait;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\node\NodeInterface;
/**
* Provides a breadcrumb builder for nodes in a book.
*/
class BookBreadcrumbBuilder extends BreadcrumbBuilderBase {
class BookBreadcrumbBuilder implements BreadcrumbBuilderInterface {
use StringTranslationTrait;
use LinkGeneratorTrait;
/**
* The node storage.
......
......@@ -7,14 +7,18 @@
namespace Drupal\comment;
use Drupal\Core\Breadcrumb\BreadcrumbBuilderBase;
use Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\LinkGeneratorTrait;
use Drupal\Core\StringTranslation\StringTranslationTrait;
/**
* Class to define the comment breadcrumb builder.
*/
class CommentBreadcrumbBuilder extends BreadcrumbBuilderBase {
class CommentBreadcrumbBuilder implements BreadcrumbBuilderInterface {
use StringTranslationTrait;
use LinkGeneratorTrait;
/**
* Stores the Entity manager service.
......
......@@ -7,10 +7,12 @@
namespace Drupal\forum\Breadcrumb;
use Drupal\Core\Breadcrumb\BreadcrumbBuilderBase;
use Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\LinkGeneratorTrait;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\forum\ForumManagerInterface;
/**
......@@ -19,7 +21,9 @@
* This just holds the dependency-injected config, entity manager, and forum
* manager objects.
*/
abstract class ForumBreadcrumbBuilderBase extends BreadcrumbBuilderBase {
abstract class ForumBreadcrumbBuilderBase implements BreadcrumbBuilderInterface {
use StringTranslationTrait;
use LinkGeneratorTrait;
/**
* Configuration object for this builder.
......
......@@ -7,14 +7,16 @@
namespace Drupal\system;
use Drupal\Core\Breadcrumb\BreadcrumbBuilderBase;
use Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Controller\TitleResolverInterface;
use Drupal\Core\Access\AccessManager;
use Drupal\Core\ParamConverter\ParamNotConvertedException;
use Drupal\Core\PathProcessor\InboundPathProcessorInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\LinkGeneratorTrait;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Component\Utility\Unicode;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
......@@ -26,7 +28,9 @@
/**
* Class to define the menu_link breadcrumb builder.
*/
class PathBasedBreadcrumbBuilder extends BreadcrumbBuilderBase {
class PathBasedBreadcrumbBuilder implements BreadcrumbBuilderInterface {
use StringTranslationTrait;
use LinkGeneratorTrait;
/**
* The router request context.
......
......@@ -7,13 +7,17 @@
namespace Drupal\taxonomy;
use Drupal\Core\Breadcrumb\BreadcrumbBuilderBase;
use Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\LinkGeneratorTrait;
use Drupal\Core\StringTranslation\StringTranslationTrait;
/**
* Provides a custom taxonomy breadcrumb builder that uses the term hierarchy.
*/
class TermBreadcrumbBuilder extends BreadcrumbBuilderBase {
class TermBreadcrumbBuilder implements BreadcrumbBuilderInterface {
use StringTranslationTrait;
use LinkGeneratorTrait;
/**
* {@inheritdoc}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment