public function Drupal_RichSnippets_SchemaPreprocessorInterface::addImage in Rich Snippets 7
Adds fields of the passed schema to the image section.
It is expected that the fields contains the URI to the resource. The processed data is added to $variables['image'].
Parameters
string $schema: The normalized schema associated with the search result.
2 methods override Drupal_RichSnippets_SchemaPreprocessorInterface::addImage()
- Drupal_RichSnippets_Apachesolr_ApachesolrSchemaPreprocessor::addImage in lib/
Drupal/ RichSnippets/ Apachesolr/ ApachesolrSchemaPreprocessor.php - Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::addImage().
- Drupal_RichSnippets_Node_NodeSchemaPreprocessor::addImage in lib/
Drupal/ RichSnippets/ Node/ NodeSchemaPreprocessor.php - Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::addImage().
File
- lib/
Drupal/ RichSnippets/ SchemaPreprocessorInterface.php, line 49 - Contains Drupal_RichSnippets_SchemaPreprocessorInterface.
Class
- Drupal_RichSnippets_SchemaPreprocessorInterface
- Interface implemented by all Rich Snippets preprocessor classes.
Code
public function addImage($schema);