public function GeneratorInterface::image in Style Guide 8
Same name and namespace in other branches
- 2.x src/GeneratorInterface.php \Drupal\styleguide\GeneratorInterface::image()
Generate a default image for display.
Parameters
string $image: The name of the image. Will be prefixed with 'styleguide-image-'.
string $type: The file type, (jpg, png, gif). Do not include a dot.
Return value
string The Drupal path to the file.
1 method overrides GeneratorInterface::image()
- Generator::image in src/
Generator.php - Generate a default image for display.
File
- src/
GeneratorInterface.php, line 105
Class
- GeneratorInterface
- Interface GeneratorInterface.
Namespace
Drupal\styleguideCode
public function image($image = 'vertical', $type = 'jpg');