Skip to content
Snippets Groups Projects
Commit 01856dda authored by Chris Wells's avatar Chris Wells Committed by Tim Plunkett
Browse files

Issue #3267656 by chrisfromredfin, narendraR: Remove cruft to make PB simpler

parent 752c1f4a
Branches 1.0.x
No related tags found
No related merge requests found
name: Project Browser Extender Example
type: module
description: A developer example for extending, altering, or enhancing the project browser.
core_version_requirement: ^9
dependencies:
- drupal:project_browser
name: "My Private Projects"
machine_name: project_browser_extender_projects
description: "Modules and themes hosted on a private server"
project:
base_uri: /drupal-org-proxy/project
fields:
author: author
summary: summary
created: created
changed: changed
images: field_project_images
nid: nid
status: status
type: type
title: title
url: url
usage_total: project_usage_total
security_advisory_coverage: field_security_advisory_coverage
machine_name: field_project_machine_name
supporting_organizations: field_supporting_organizations
stars: flag_project_star_user_count
categories: taxonomy_vocabulary_3
maintenance_status: taxonomy_vocabulary_44
development_status: taxonomy_vocabulary_46
releases:
base_uri: /drupal-org-proxy/project/releases
fields:
version: version
tag: tag
url: release_link
date: date
is_compatible: is_compatible
supporting_organizations:
base_uri: https://www.drupal.org/api-d7/node/$nid.json
fields:
title: title
url: url
term:
base_uri: /drupal-org-proxy/project/terms
fields:
name: name
description: description
file:
base_uri: /drupal-org-proxy/project/files
fields:
url: url
name: "Drupal.org Projects"
machine_name: drupal_org_projects
description: "Modules and themes hosted on Drupal.org"
project:
base_uri: https://www.drupal.org/api-d7/node.json
fields:
author: author
summary: summary
created: created
changed: changed
images: field_project_images
nid: nid
status: status
type: type
title: title
url: url
usage_total: project_usage_total
security_advisory_coverage: field_security_advisory_coverage
machine_name: field_project_machine_name
supporting_organizations: field_supporting_organizations
stars: flag_project_star_user_count
categories: taxonomy_vocabulary_3
maintenance_status: taxonomy_vocabulary_44
development_status: taxonomy_vocabulary_46
releases:
# @todo How to handle arguments like $project?
base_uri: https://updates.drupal.org/release-history/$project/current
fields:
version: version
tag: tag
url: release_link
date: date
is_compatible: is_compatible
supporting_organizations:
base_uri: https://www.drupal.org/api-d7/node/$nid.json
fields:
title: title
url: url
term:
base_uri: https://www.drupal.org/taxonomy/term/$tid.json
fields:
name: name
description: description
file:
base_uri: https://www.drupal.org/api-d7/file/$fid.json
fields:
url: url
<?php
namespace Drupal\project_browser;
use Drupal\project_browser\DrupalOrg\DrupalOrgProjects;
use Drupal\project_browser\DrupalOrg\DrupalOrgReleases;
/**
* @todo.
*/
interface ProjectBrowserEndpointInterface {
/**
* @todo.
*/
public function getProjects(array $query = []): DrupalOrgProjects;
/**
* @todo.
*/
public function getProjectReleases(string $project): DrupalOrgReleases;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment