public function Drupal_RichSnippets_Node_NodeSchemaPreprocessor::addTextToInfo in Rich Snippets 7
Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::addTextToInfo().
Overrides Drupal_RichSnippets_SchemaPreprocessorInterface::addTextToInfo
File
- lib/
Drupal/ RichSnippets/ Node/ NodeSchemaPreprocessor.php, line 112 - Contains Drupal_RichSnippets_Node_NodeSchemaPreprocessor.
Class
- Drupal_RichSnippets_Node_NodeSchemaPreprocessor
- Rich Snippets preprocessor for the Node module.
Code
public function addTextToInfo($schema) {
foreach ($this
->getSchemaFields($schema) as $field_name => $items) {
$build = field_view_field($this->_entityType, $this->_entity, $field_name, array(
'label' => 'hidden',
));
$rendered = $this
->normalize(drupal_render($build));
$this->_variables['info_split'][$schema] = check_plain($rendered);
}
}