public function Drupal_RichSnippets_Node_NodeSchemaPreprocessor::__construct in Rich Snippets 7
Implements Drupal_RichSnippets_SchemaPreprocessorAbstract::__construct().
Overrides Drupal_RichSnippets_SchemaPreprocessorInterface::__construct
File
- lib/
Drupal/ RichSnippets/ Node/ NodeSchemaPreprocessor.php, line 44 - Contains Drupal_RichSnippets_Node_NodeSchemaPreprocessor.
Class
- Drupal_RichSnippets_Node_NodeSchemaPreprocessor
- Rich Snippets preprocessor for the Node module.
Code
public function __construct(array &$variables) {
$this->_variables =& $variables;
// Captures class variables.
$this->_entity = $variables['result']['node'];
$this->_entityType = 'node';
$this->_bundle = $this->_entity->type;
// Delete the info split so we can populate it ourselves.
$this->_variables['info_split'] = array();
}