code: protected function getLabel($item)
      {
          $encodeLabel = isset($item['encode']) ? $item['encode'] : $this->encodeLabels;
          return $encodeLabel ? Html::encode($item['label']) : $item['label'];
      }
docs: Returns the label
  
  @param array $item the item configuration
  
  @return string the label