You are here

public static function SchemaMetatagManagerInterface::randomString in Schema.org Metatag 8

Same name and namespace in other branches
  1. 8.2 src/SchemaMetatagManagerInterface.php \Drupal\schema_metatag\SchemaMetatagManagerInterface::randomString()

Generates a pseudo-random string of ASCII characters of codes 32 to 126.

Parameters

int $length: Length of random string to generate.

Return value

string Pseudo-randomly generated unique string including special characters.

1 method overrides SchemaMetatagManagerInterface::randomString()
SchemaMetatagManager::randomString in src/SchemaMetatagManager.php
Generates a pseudo-random string of ASCII characters of codes 32 to 126.

File

src/SchemaMetatagManagerInterface.php, line 181

Class

SchemaMetatagManagerInterface
Interface SchemaMetatagManagerInterface.

Namespace

Drupal\schema_metatag

Code

public static function randomString($length = 8);