You are here

static function SchemaOrgDataConverter::interactionCount in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/rdf/src/SchemaOrgDataConverter.php \Drupal\rdf\SchemaOrgDataConverter::interactionCount()

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

3 string references to 'SchemaOrgDataConverter::interactionCount'
rdf.mapping.node.article.yml in core/profiles/standard/config/install/rdf.mapping.node.article.yml
core/profiles/standard/config/install/rdf.mapping.node.article.yml
rdf.mapping.node.forum.yml in core/modules/forum/config/optional/rdf.mapping.node.forum.yml
core/modules/forum/config/optional/rdf.mapping.node.forum.yml
rdf.mapping.node.page.yml in core/profiles/standard/config/install/rdf.mapping.node.page.yml
core/profiles/standard/config/install/rdf.mapping.node.page.yml

File

core/modules/rdf/src/SchemaOrgDataConverter.php, line 29
Contains \Drupal\rdf\SchemaOrgDataConverter.

Class

SchemaOrgDataConverter

Namespace

Drupal\rdf

Code

static function interactionCount($count, $arguments) {
  $interaction_type = $arguments['interaction_type'];
  return "{$interaction_type}:{$count}";
}