Skip to content

Instantly share code, notes, and snippets.

@filbertkm
Last active January 5, 2016 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filbertkm/9155d7095c305e43c579 to your computer and use it in GitHub Desktop.
Save filbertkm/9155d7095c305e43c579 to your computer and use it in GitHub Desktop.
class TextContent extends AbstractContent {
/**
* Returns the text represented by this Content object, as a string.
*
* @return string The raw text.
*/
public function getTextForSearchIndex() {
return $this->getNativeData();
}
/**
* @param string[]
*/
public function getFieldsForSearchIndex( array $fieldNames ) {
}
/**
* @return Field[] key => field definition
*/
public function getSearchIndexFieldDefinitions() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment