public function GeneratorInterface::words in Style Guide 8
Same name and namespace in other branches
- 2.x src/GeneratorInterface.php \Drupal\styleguide\GeneratorInterface::words()
Return a random word or words.
Parameters
int $size: The number of words to return.
string $case: A string indicating the case to return. This is the name of a PHP function. options are 'ucfirst', 'ucwords', 'strtoupper', and 'strtolower'. Defaults to return strtolower().
1 method overrides GeneratorInterface::words()
- Generator::words in src/
Generator.php - Return a random word or words.
File
- src/
GeneratorInterface.php, line 36
Class
- GeneratorInterface
- Interface GeneratorInterface.
Namespace
Drupal\styleguideCode
public function words($size = 1, $case = 'strtolower');