PHP code example of va-gov / content-build
1. Go to this page and download the library: Download va-gov/content-build library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
va-gov / content-build example snippets
# .env file contents
DRUPAL_ADDRESS=https://cms-8ry6zt2asg946vdfuiryyamuc9gkuyzc.demo.cms.va.gov/
DRUPAL_USERNAME=content_build_api
DRUPAL_PASSWORD=drupal8
function getNodeQueries(entityCounts) {
return {
...getNodePageQueries(entityCounts),
GetNodeLandingPages,
// ...getNodeVaFormQueries(entityCounts),
// ...getNodeHealthCareRegionPageQueries(entityCounts),
// ...getNodePersonProfileQueries(entityCounts),
// ...getNodeOfficeQueries(entityCounts),
// ...getNodeHealthCareLocalFacilityPageQueries(entityCounts),
// ...getNodeHealthServicesListingPageQueries(entityCounts),
// ...getNewsStoryQueries(entityCounts),
// ...getPressReleaseQueries(entityCounts),
// GetNodePressReleaseListingPages,
// ...getNodeEventListingQueries(entityCounts),
// ...getNodeEventQueries(entityCounts),
// ...getVaPoliceQueries(entityCounts),
// GetNodeStoryListingPages,
// GetNodeLocationsListingPages,
// GetNodeLeadershipListingPages,
// GetNodeVamcOperatingStatusAndAlerts,
// GetNodePublicationListingPages,
// ...getNodeHealthCareRegionDetailPageQueries(entityCounts),
// ...getNodeQaQueries(entityCounts),
// GetNodeMultipleQaPages,
// GetNodeStepByStep,
// GetNodeMediaListImages,
// GetNodeChecklist,
// GetNodeMediaListVideos,
// GetNodeSupportResourcesDetailPage,
GetNodeBasicLandingPage,
GetCampaignLandingPages,
// ...getVetCenterQueries(entityCounts),
// ...getVbaFacilityQueries(entityCounts),
// GetVetCenterLocations,
// GetPolicyPages,
// GetBillingAndInsurancePages,
// GetRegisterForCarePages,
// GetMedicalRecordsOfficePages,
};
}