protected function createMenuItemLabel($menu_item, $comment) {
    $label = isset($this->labels[$menu_item]) ?
      $this->labels[$menu_item] : str_replace(['-', '_'], ' ', ucfirst($menu_item));
    return $comment ? "<comment>$label</comment>" : $label;
  }
protected function createMenuItemLabel($menu_item, $comment) {
    $label = isset($this->labels[$menu_item]) ?
      $this->labels[$menu_item] : str_replace(['-', '_'], ' ', ucfirst($menu_item));
    return $comment ? "<comment>$label</comment>" : $label;
  }
protected function createMenuItemLabel ( $ menu_item , $ comment ) { $ label = isset ( $ this -> labels [ $ menu_item ] ) ? $ this -> labels [ $ menu_item ] : str_replace ( [ '-' , '_' ] , ' ' , ucfirst ( $ menu_item ) ) ; return $ comment ? "<comment>$label</comment>" : $ label ; }
Creates a human readable label for a given menu item.

@param string $menu_item
Machine name of the menu item.
@param bool $comment
A boolean indicating that the label should be wrapped with comment tag.

@return string
The menu label.
Creates a human readable label for a given menu item .