def getItemsFromDefaults(defaults, params):
  """Converts defaults to specific items for this view.

  Args:
    defaults: the defaults to instantiate
    params: a dict with params for this View
  """

  result = []

  for url, menu_text, access_type in defaults:
    url = url % params['url_name'].lower()
    item = (url, menu_text % params, access_type)
    result.append(item)

  return result