You are here

public function Drupal_RichSnippets_Apachesolr_ApachesolrSchemaPreprocessor::getSchemaFields in Rich Snippets 7

Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::getSchemaFields().

Overrides Drupal_RichSnippets_SchemaPreprocessorInterface::getSchemaFields

3 calls to Drupal_RichSnippets_Apachesolr_ApachesolrSchemaPreprocessor::getSchemaFields()
Drupal_RichSnippets_Apachesolr_ApachesolrSchemaPreprocessor::addDateToInfo in lib/Drupal/RichSnippets/Apachesolr/ApachesolrSchemaPreprocessor.php
Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::addDateToInfo().
Drupal_RichSnippets_Apachesolr_ApachesolrSchemaPreprocessor::addImage in lib/Drupal/RichSnippets/Apachesolr/ApachesolrSchemaPreprocessor.php
Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::addImage().
Drupal_RichSnippets_Apachesolr_ApachesolrSchemaPreprocessor::addTextToInfo in lib/Drupal/RichSnippets/Apachesolr/ApachesolrSchemaPreprocessor.php
Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::addTextToInfo().

File

lib/Drupal/RichSnippets/Apachesolr/ApachesolrSchemaPreprocessor.php, line 127
Contains Drupal_RichSnippets_Apachesolr_ApachesolrSchemaPreprocessor.

Class

Drupal_RichSnippets_Apachesolr_ApachesolrSchemaPreprocessor
Rich Snippets preprocessor for the Apache Solr Search Integration module.

Code

public function getSchemaFields($schema) {
  $schema_fields = array();
  $schema_mappings = $this
    ->getFieldSchemaMappings($schema);
  foreach ($schema_mappings as $field_name) {
    if (!empty($this->_solrFields[$field_name])) {
      $schema_fields[$field_name] = (array) $this->_solrFields[$field_name];
    }
  }
  return $schema_fields;
}