You are here

public function ThemeGenerator::infoYmlDescription in AT Tools 8.2

Same name and namespace in other branches
  1. 8.3 at_theme_generator/src/Theme/ThemeGenerator.php \Drupal\at_theme_generator\Theme\ThemeGenerator::infoYmlDescription()

Format theme description.

Parameters

$desc:

Return value

string

3 calls to ThemeGenerator::infoYmlDescription()
ThemeGeneratorTypes::cloneGenerator in at_theme_generator/src/Theme/ThemeGeneratorTypes.php
Generate clone type theme.
ThemeGeneratorTypes::skinGenerator in at_theme_generator/src/Theme/ThemeGeneratorTypes.php
Generate skin type theme.
ThemeGeneratorTypes::starterkitGenerator in at_theme_generator/src/Theme/ThemeGeneratorTypes.php
Generate starter kit type theme.

File

at_theme_generator/src/Theme/ThemeGenerator.php, line 557

Class

ThemeGenerator
Generator form.

Namespace

Drupal\at_theme_generator\Theme

Code

public function infoYmlDescription($desc) {
  $text = $desc['text'] ? $desc['text'] . ' <br>' : '';
  $clone = isset($desc['clone']) ? 'Clone of: ' . $desc['clone'] . ' <br>' : '';
  $skin = isset($desc['skin']) ? 'Skin of: ' . $desc['skin'] . ' <br>' : '';
  $base = $desc['base'] ? 'Base: ' . $desc['base'] . ' <br>' : '';
  $time = $desc['time'] ? 'Generated: ' . $desc['time'] : '';
  return $text . $clone . $skin . $base . $time;
}