Title for show page of given resource
 @param decorated [Wallaby::ResourceDecorator]
 @return [String]
187320
def show_title(decorated)
      raise ::ArgumentError unless decorated.is_a? ResourceDecorator
      [
        to_model_label(decorated.model_class), decorated.to_label
      ].compact.join ': '
    end
26988
def show
      if params[:page_name] == "website"
        return render json: Website.unique_instance.as_json_for_page
      end

      page = Pwb::Page.find_by_slug(params[:page_name])
      if page
        render json: page.as_json_for_admin
      else
        render json: {}
      end
    end
757915
def get_resources(url, resource_class, params={})
      get(url, params).map do |result|
        resource_class.from_hash(result, client: self)
      end
    end
88242
def index
      core__set_header_active_page_title(LANGUAGES[:lato_blog][:pages][:categories])
      # find categories to show
      @categories = LatoBlog::Category.where(meta_language: cookies[:lato_blog__current_language]).order('title ASC')
      @widget_index_categories = core__widgets_index(@categories, search: 'title', pagination: 10)
    end
929591
def resource_name(self, resource):
        
        if not(resource in self.contents['files']):
            raise ValueError("No such resource %r in refpkg" % (resource,))
        return self.contents['files'][resource]
657314
def content(options = {}, &block)
      config.set_page_presenter :index, ActiveAdmin::PagePresenter.new(options, &block)
    end
357979
private String messagePageTitle() {

        return org.opencms.gwt.Messages.get().getBundle(getLocale()).key(
            org.opencms.gwt.Messages.GUI_DEPENDENCY_PAGE_TITLE_0);
    }
374907
def render_title_tag(context, is_og=False):
    
    request = context['request']
    content = ''

    # Try to get the title from the context object (e.g. DetailViews).
    if context.get('object'):
        try:
            content = context['object'].get_meta_title()
        except AttributeError:
            pass
    elif context.get('meta_tagger'):
        content = context['meta_tagger'].get('title')

    if not content:
        # Try to get the title from the cms page.
        try:
            content = request.current_page.get_page_title()  # Try the `page_title` before the `title of the CMS page.
            if not content:
                content = request.current_page.get_title()
        except (AttributeError, NoReverseMatch):
            pass

    if not is_og:
        return content
    else:
        return mark_safe('<meta property="og:title" content="{content}">'.format(content=content))
1214220
def show
      @page = ::Page.find(params[:id])

      respond_to do |format|
        format.html # show.html.erb
        format.xml  { render :xml => @page }
      end
    end
1079025
def resource_name(cls):
        
        if cls.__name__ == "NURESTRootObject" or cls.__name__ == "NURESTObject":
            return "Not Implemented"

        if cls.__resource_name__ is None:
            raise NotImplementedError('%s has no defined resource name. Implement resource_name property first.' % cls)

        return cls.__resource_name__
1135074
def get_title(self):
        
        w = self.arrangement.get_active_window()

        if w and w.active_process:
            title = w.active_process.screen.title
        else:
            title = ''

        if title:
            return '%s - Pymux' % (title, )
        else:
            return 'Pymux'
546443
function PageTitle(props) {
  const { activePage } = React.useContext(PageContext);

  if (!activePage) {
    throw new Error('Missing activePage.');
  }

  const title = pageToTitleI18n(activePage, props.t);

  return props.children(title);
}
271703
def within_admin_layout(title: nil, **opts)
      within_layout(layout: "renalware/layouts/non_patient",
                    title: opts.fetch(:page_title, title),
                    **opts) { yield }
    end
745210
def get_page_title(overide = nil)
      
      # if override has content, use this content to create the meta title


      if !overide.blank?

        websiteTitle = Setting.get('seo_site_title')
        title = "#{overide} | #{websiteTitle}"
        @seo_title =  "<title>#{title}</title>"

      else

        # if seo title is not blank then use that
        if !@content.post_seo_title.blank?
          @seo_title = "<title>#{@content.post_seo_title}</title>"
        else
          # if worst comes to worst use the page title
          websiteTitle = Setting.get('seo_site_title')
          title = "#{@content.post_title} | #{websiteTitle}"
          @seo_title = "<title>#{title}</title>"
        end

      end

    end
1238190
def page_title(step, title):
    

    with AssertContextManager(step):
        assert_equals(world.browser.title, title)
1092010
def resource_name(resource, options = {})
      raise_unless_xpath!(resource)
      options = { return_expressions: false }.merge(options)
      if options[:return_expressions]
        name = resource.xpath("command/args_add_block")
        if name.xpath("descendant::string_add").size == 1 &&
            name.xpath("descendant::string_literal").size == 1 &&
            name.xpath(
              "descendant::*[self::call or self::string_embexpr]").empty?
          name.xpath("descendant::tstring_content/@value").to_s
        else
          name
        end
      else
        # Preserve existing behaviour
        resource.xpath("string(command//tstring_content/@value)")
      end
    end
1081944
def generate_page_title(self, data_slug):
        """"""
        tag = Tag.objects.filter(slug=data_slug)
        return tag[0].word