You are here

public function GeneratorInterface::links in Style Guide 8

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

Generate a array of random links.

Parameters

string $url: The internal path or external URL being linked to.

int $size: The total number of links to generate .

Return value

array A array of random links

1 method overrides GeneratorInterface::links()
Generator::links in src/Generator.php
Generate a array of random links.

File

src/GeneratorInterface.php, line 139

Class

GeneratorInterface
Interface GeneratorInterface.

Namespace

Drupal\styleguide

Code

public function links($url, $size = 4);