You are here

protected function Glossary::testType in Search API AZ Glossary 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/search_api/processor/Glossary.php \Drupal\search_api_glossary\Plugin\search_api\processor\Glossary::testType()
2 calls to Glossary::testType()
Glossary::addFieldValues in src/Plugin/search_api/processor/Glossary.php
Adds the values of properties defined by this processor to the item.
Glossary::buildConfigurationForm in src/Plugin/search_api/processor/Glossary.php
Form constructor.

File

src/Plugin/search_api/processor/Glossary.php, line 238

Class

Glossary
Adds the item's AZ to the indexed data.

Namespace

Drupal\search_api_glossary\Plugin\search_api\processor

Code

protected function testType($type) {
  return $this
    ->getDataTypeHelper()
    ->isTextType($type, [
    'text',
    'string',
    'integer',
  ]);
}