You are here

public static function SchemaMetatagTestTagInterface::testDefaultValue in Schema.org Metatag 8

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

Provide a random test value.

A helper function to create a random test value. Use the delimiter to create comma-separated values, or a few "words" separated by spaces.

Value must be static so the test can retrieve the value without instantiating the class.

Parameters

int $count: Number of "words".

int $delimiter: Delimiter used to connect "words".

Return value

mixed Return the test value, either a string or array, depending on the property.

1 method overrides SchemaMetatagTestTagInterface::testDefaultValue()
SchemaNameBase::testDefaultValue in src/Plugin/metatag/Tag/SchemaNameBase.php
Provide a random test value.

File

src/SchemaMetatagTestTagInterface.php, line 98

Class

SchemaMetatagTestTagInterface
Interface SchemaMetatagTestTagInterface.

Namespace

Drupal\schema_metatag

Code

public static function testDefaultValue($count = NULL, $delimiter = NULL);