You are here

public function Drupal_RichSnippets_SchemaPreprocessorInterface::addDateToInfo in Rich Snippets 7

Adds fields of the passed schema to the info section.

It is expected that the fields contains a timestamp of some sort. The processed data is added to the $variables['info_split'] array.

Parameters

string $schema: The normalized schema associated with the search result.

2 methods override Drupal_RichSnippets_SchemaPreprocessorInterface::addDateToInfo()
Drupal_RichSnippets_Apachesolr_ApachesolrSchemaPreprocessor::addDateToInfo in lib/Drupal/RichSnippets/Apachesolr/ApachesolrSchemaPreprocessor.php
Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::addDateToInfo().
Drupal_RichSnippets_Node_NodeSchemaPreprocessor::addDateToInfo in lib/Drupal/RichSnippets/Node/NodeSchemaPreprocessor.php
Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::addDateToInfo().

File

lib/Drupal/RichSnippets/SchemaPreprocessorInterface.php, line 60
Contains Drupal_RichSnippets_SchemaPreprocessorInterface.

Class

Drupal_RichSnippets_SchemaPreprocessorInterface
Interface implemented by all Rich Snippets preprocessor classes.

Code

public function addDateToInfo($schema);