public function Generator::tableRows in Style Guide 8
Same name and namespace in other branches
- 2.x src/Generator.php \Drupal\styleguide\Generator::tableRows()
Return a random table row array.
Parameters
int $size: The size of the list to return.
Return value
array An array of row elements.
Overrides GeneratorInterface::tableRows
File
- src/
Generator.php, line 95
Class
- Generator
- Class Generator.
Namespace
Drupal\styleguideCode
public function tableRows($size = 5) {
$rows = [];
for ($i = 0; $i < $size; $i++) {
$rows[] = $this
->wordList($size);
}
return $rows;
}