public function Drupal_RichSnippets_SchemaPreprocessorInterface::getSchemaFields in Rich Snippets 7
Returns an associative array of field names to values associated with the passed schema or property.
The field names are the names as stored in the object returned by the search backend. For example, the Apache Solr Search Integration will use the field names as stored in Solr and not the Field API names.
Parameters
string $schema: The normalized schema associated with the search result.
Return value
array An associative array keyed by field names to values.
2 methods override Drupal_RichSnippets_SchemaPreprocessorInterface::getSchemaFields()
- Drupal_RichSnippets_Apachesolr_ApachesolrSchemaPreprocessor::getSchemaFields in lib/
Drupal/ RichSnippets/ Apachesolr/ ApachesolrSchemaPreprocessor.php - Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::getSchemaFields().
- Drupal_RichSnippets_Node_NodeSchemaPreprocessor::getSchemaFields in lib/
Drupal/ RichSnippets/ Node/ NodeSchemaPreprocessor.php - Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::getSchemaFields().
File
- lib/
Drupal/ RichSnippets/ SchemaPreprocessorInterface.php, line 38 - Contains Drupal_RichSnippets_SchemaPreprocessorInterface.
Class
- Drupal_RichSnippets_SchemaPreprocessorInterface
- Interface implemented by all Rich Snippets preprocessor classes.
Code
public function getSchemaFields($schema);