You are here

public function GeneratorInterface::paragraphs in Style Guide 8

Same name and namespace in other branches
  1. 2.x src/GeneratorInterface.php \Drupal\styleguide\GeneratorInterface::paragraphs()

Generate paragraph(s) of random text.

Parameters

int $size: The number of paragraphs to return.

bool $render: Allow to choose render the paragraph or return renderable array.

Return value

array|string Renderable array or string of HTML paragraphs.

1 method overrides GeneratorInterface::paragraphs()
Generator::paragraphs in src/Generator.php
Generate paragraph(s) of random text.

File

src/GeneratorInterface.php, line 92

Class

GeneratorInterface
Interface GeneratorInterface.

Namespace

Drupal\styleguide

Code

public function paragraphs($size = 5, $render = FALSE);