class SchemaOrgDataConverter (View source)

Methods

static string
interactionCount(int $count, array $arguments)

Converts an interaction count to a string with the interaction type.

Details

static string interactionCount(int $count, array $arguments)

Converts an interaction count to a string with the interaction type.

Schema.org defines a number of different interaction types.

Parameters

int $count

The interaction count.

array $arguments

An array of arguments defined in the mapping. Expected keys are:

  • interaction_type: The string to use for the type of interaction (e.g. UserComments).

Return Value

string

The formatted string.

See also

http://schema.org/UserInteraction