protected function StepsBlock::getLink in Opigno Learning path 3.x
Take a module link.
@todo Previously it can be take or next link, it should be researched.
Throws
\Drupal\Component\Plugin\Exception\PluginException
1 call to StepsBlock::getLink()
- StepsBlock::getLinkToStart in src/Plugin/ Block/ StepsBlock.php 
File
- src/Plugin/ Block/ StepsBlock.php, line 243 
Class
- StepsBlock
- Provides a 'article' block.
Namespace
Drupal\opigno_learning_path\Plugin\BlockCode
protected function getLink($step) : Url {
  $content_step = OpignoGroupManagedContent::load($step['cid']);
  /** @var \Drupal\opigno_group_manager\ContentTypeBase $content_type */
  $content_type = $this->opignoGroupContentTypesManager
    ->createInstance($content_step
    ->getGroupContentTypeId());
  $step_url = $content_type
    ->getStartContentUrl($content_step
    ->getEntityId(), $this
    ->getCurrentGroupId());
  return Url::fromRoute($step_url
    ->getRouteName(), $step_url
    ->getRouteParameters());
}