public static function SchemaNameBase::randomUrl in Schema.org Metatag 7
Random absolute url for testing.
Return value
string A random absolute url.
Overrides SchemaMetatagTestTagInterface::randomUrl
4 calls to SchemaNameBase::randomUrl()
- SchemaImageBase::testValue in src/
SchemaImageBase.php - Provide a test input value for the property that will validate.
- SchemaMainEntityOfPageBase::testValue in src/
SchemaMainEntityOfPageBase.php - Provide a test input value for the property that will validate.
- SchemaPersonOrgBase::testValue in src/
SchemaPersonOrgBase.php - Provide a test input value for the property that will validate.
- SchemaUrlBase::testValue in src/
SchemaUrlBase.php - Provide a test input value for the property that will validate.
File
- src/
SchemaNameBase.php, line 262
Class
- SchemaNameBase
- All Schema.org tags should extend this class.
Code
public static function randomUrl() {
return 'http://google.com/' . static::testDefaultValue(1, '');
}