Classes/ViewHelpers/HeadlineLinkViewHelper.php
public function render($content = null, $layout = 100, $cssClass = 'ce__title') {
    $content  = (string) $content;
    $layout   = intval($layout);
    $cssClass = (string) $cssClass;

    if (empty($content)) {
      $content = $this->renderChildren();
    }

    if (!empty($content) && $layout != 0 && $layout != 100) {
      $tagName = "h{$layout}";

      $this->tag->setTagName($tagName);
      $this->tag->addAttribute('class', $cssClass);

      $link = $this->createLink($content);

      $this->tag->setContent($link->render());

      return $this->tag->render();
    }
  }
public function render($content = null, $layout = 100, $cssClass = 'ce__title') {
    $content  = (string) $content;
    $layout   = intval($layout);
    $cssClass = (string) $cssClass;

    if (empty($content)) {
      $content = $this->renderChildren();
    }

    if (!empty($content) && $layout != 0 && $layout != 100) {
      $tagName = "h{$layout}";

      $this->tag->setTagName($tagName);
      $this->tag->addAttribute('class', $cssClass);

      $link = $this->createLink($content);

      $this->tag->setContent($link->render());

      return $this->tag->render();
    }
  }
The view helper render function.

@param string $content The content of the headline
@param int $layout The optional layout (UID) of the headline, defaults to `100`
@param string $cssClass The optional CSS class of the headline, defaults to `ce__title`
@return string The rendered headline