public function Glossary::getFieldName in Search API AZ Glossary 8.4
Same name and namespace in other branches
- 8.3 src/Plugin/search_api/processor/Glossary.php \Drupal\search_api_glossary\Plugin\search_api\processor\Glossary::getFieldName()
Return the name of source field.
Parameters
string $name: Name of the glossary field.
Return value
string Name of the original field.
File
- src/
Plugin/ search_api/ processor/ Glossary.php, line 275
Class
- Glossary
- Adds the item's AZ to the indexed data.
Namespace
Drupal\search_api_glossary\Plugin\search_api\processorCode
public function getFieldName($name) {
return str_replace($this->targetFieldPrefix, '', $name);
}