From dc296444859d9b97e21b8c39180c805379d25c2e Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Thu, 10 Sep 2015 15:29:30 +0100
Subject: [PATCH] Issue #2565925 by Wim Leers: Let Breadcrumb implement
 RenderableInterface

---
 core/lib/Drupal/Core/Breadcrumb/Breadcrumb.php | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/core/lib/Drupal/Core/Breadcrumb/Breadcrumb.php b/core/lib/Drupal/Core/Breadcrumb/Breadcrumb.php
index 6f324d75100c..788f70045851 100644
--- a/core/lib/Drupal/Core/Breadcrumb/Breadcrumb.php
+++ b/core/lib/Drupal/Core/Breadcrumb/Breadcrumb.php
@@ -10,11 +10,12 @@
 use Drupal\Core\Cache\RefinableCacheableDependencyInterface;
 use Drupal\Core\Cache\RefinableCacheableDependencyTrait;
 use Drupal\Core\Link;
+use Drupal\Core\Render\RenderableInterface;
 
 /**
  * Used to return generated breadcrumbs with associated cacheability metadata.
  */
-class Breadcrumb implements RefinableCacheableDependencyInterface {
+class Breadcrumb implements RenderableInterface, RefinableCacheableDependencyInterface {
 
   use RefinableCacheableDependencyTrait;
 
@@ -70,12 +71,7 @@ public function addLink(Link $link) {
   }
 
   /**
-   * Returns a render array representation of the object.
-   *
-   * @return mixed[]
-   *   A render array.
-   *
-   * @todo implement RenderableInterface once https://www.drupal.org/node/2529560 lands.
+   * {@inheritdoc}
    */
   public function toRenderable() {
     $build = [
-- 
GitLab