You are here

function ds_prepare_regions_css in Display Suite 8.3

Same name and namespace in other branches
  1. 8.2 drush/ds.drush.inc \ds_prepare_regions_css()
  2. 7.2 drush/ds.drush.inc \ds_prepare_regions_css()
  3. 7 ds.drush.inc \ds_prepare_regions_css()

Prepare styling for an array of regions.

1 call to ds_prepare_regions_css()
drush_ds_build in drush/ds.drush.inc
Create a basic template and configuration file for a Display Suite layout.

File

drush/ds.drush.inc, line 221
Display Suite drush integration.

Code

function ds_prepare_regions_css($region_names) {
  $output = [];
  foreach ($region_names as $name) {
    $html_class = Html::getClass($name);
    $output[] = <<<END
.ds-{<span class="php-variable">$html_class</span>} {
  /* Styles for the "{<span class="php-variable">$html_class</span>}" region go here */
}
END;
  }
  return implode("\n\n", $output);
}