protected function getTitleFromProvider($itemId)
    {
        $itemId = $this->escapeId($itemId);
        if (!$this->texts) {
            return $itemId;
        }

        return $this->texts->get($itemId);
    }
protected function getTitleFromProvider($itemId)
    {
        $itemId = $this->escapeId($itemId);
        if (!$this->texts) {
            return $itemId;
        }

        return $this->texts->get($itemId);
    }
protected function getTitleFromProvider ( $ itemId ) { $ itemId = $ this -> escapeId ( $ itemId ) ; if ( ! $ this -> texts ) { return $ itemId ; } return $ this -> texts -> get ( $ itemId ) ; }
Get the title from TextProvider if one set.

@param mixed $itemId

@return string
Get the title from TextProvider if one set .