public function build(string $bodyCssClass = self::DEFAULT_BODY_CSS_CLASS): string {
    $page          = $this->pageService->getCurrentPage();
    $backendLayout = $this->pageService->getBackendLayoutForPage($page['uid']);

    if (!empty($backendLayout)) {
      $bodyCssClass = "{$backendLayout} {$bodyCssClass}";
    }

    return '<body class="' . $bodyCssClass . '">';
  }
public function build(string $bodyCssClass = self::DEFAULT_BODY_CSS_CLASS): string {
    $page          = $this->pageService->getCurrentPage();
    $backendLayout = $this->pageService->getBackendLayoutForPage($page['uid']);

    if (!empty($backendLayout)) {
      $bodyCssClass = "{$backendLayout} {$bodyCssClass}";
    }

    return '<body class="' . $bodyCssClass . '">';
  }
public function build ( string $ bodyCssClass = self :: DEFAULT_BODY_CSS_CLASS ) : string { $ page = $ this -> pageService -> getCurrentPage ( ) ; $ backendLayout = $ this -> pageService -> getBackendLayoutForPage ( $ page [ 'uid' ] ) ; if ( ! empty ( $ backendLayout ) ) { $ bodyCssClass = "{$backendLayout} {$bodyCssClass}" ; } return '<body class="' . $ bodyCssClass . '">' ; }
Builds a body tag.

@param string $bodyCssClass The CSS class of the body tag, defaults to `BodyTagUtility::DEFAULT_BODY_CSS_CLASS`
@return string The body tag
Builds a body tag .