protected function RoboFile::getDrupalOrgMakeContents in Panopoly 7
Gets the contents for the top-level drupal-org.make file from the features.
2 calls to RoboFile::getDrupalOrgMakeContents()
- RoboFile::buildDrupalOrgMake in ./
RoboFile.php - Builds the top-level drupal-org.make file from the panopoly_* features.
- RoboFile::gitPreCommit in ./
RoboFile.php - Perform pre-commit checks. Intended to be run as a Git pre-commit hook.
File
- ./
RoboFile.php, line 255
Class
- RoboFile
- This is project's console commands configuration for Robo task runner.
Code
protected function getDrupalOrgMakeContents() {
$drupal_org_make = <<<EOF
;
; GENERATED FILE - DO NOT EDIT!
;
EOF;
foreach ($this
->getPanopolyFeatures() as $panopoly_feature) {
$panopoly_feature_make = __DIR__ . "/modules/panopoly/{$panopoly_feature}/{$panopoly_feature}.make";
if (file_exists($panopoly_feature_make)) {
$drupal_org_make .= "\n" . file_get_contents($panopoly_feature_make);
}
}
return $drupal_org_make;
}