X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fblock_content%2Fsrc%2FBlockContentViewBuilder.php;h=2ea321d7690b2e8f4ce12fc8eddaecfbab873355;hb=4f1b9b4ab48a8498afac9e2213a02a23ccf4a06c;hp=29c668cd63d09e4db3b630871d64d7f60b2578ea;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/block_content/src/BlockContentViewBuilder.php b/web/core/modules/block_content/src/BlockContentViewBuilder.php index 29c668cd6..2ea321d76 100644 --- a/web/core/modules/block_content/src/BlockContentViewBuilder.php +++ b/web/core/modules/block_content/src/BlockContentViewBuilder.php @@ -2,7 +2,6 @@ namespace Drupal\block_content; -use Drupal\Core\Entity\Display\EntityViewDisplayInterface; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityViewBuilder; @@ -41,18 +40,4 @@ class BlockContentViewBuilder extends EntityViewBuilder { return $build; } - /** - * {@inheritdoc} - */ - protected function alterBuild(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) { - parent::alterBuild($build, $entity, $display, $view_mode); - // Add contextual links for this custom block. - if (!$entity->isNew()) { - $build['#contextual_links']['block_content'] = [ - 'route_parameters' => ['block_content' => $entity->id()], - 'metadata' => ['changed' => $entity->getChangedTime()], - ]; - } - } - }