You are here

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

Same name and namespace in other branches
  1. 8 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
The Schema Metatag Manager.

Namespace

Drupal\schema_metatag

Code

public static function randomString($length = 8);