You are here

public function BackLinkBlock::getLinks in Opigno Learning path 3.x

Builds the breadcrumb links.

1 call to BackLinkBlock::getLinks()
BackLinkBlock::build in src/Plugin/Block/BackLinkBlock.php
Builds and returns the renderable array for this block plugin.

File

src/Plugin/Block/BackLinkBlock.php, line 47

Class

BackLinkBlock
Provides a backlinkblock block.

Namespace

Drupal\opigno_learning_path\Plugin\Block

Code

public function getLinks() {
  return $this->breadcrumbManager
    ->build($this->routeMatch)
    ->getLinks() ?: [];
}