code: protected function renderLabel(ElementInterface $oElement)
      {
          if (($sLabel = $oElement->getLabel()) && ($oTranslator = $this->getTranslator())) {
              $sLabel = $oTranslator->translate($sLabel, $this->getTranslatorTextDomain());
          }
          return $sLabel;
      }
docs: Render element's label
  @param ElementInterface $oElement
  @return string