getType() public méthode

See const above for available types.
public getType ( ) : string
Résultat string
 /**
  * Indicates if a field is searchable.
  *
  * @SuppressWarnings(PHPMD.UnusedPrivateMethod)
  *
  * @param FieldInterface $field Mapping field.
  *
  * @return boolean
  */
 private function isSearchableFieldCallback(FieldInterface $field)
 {
     return $field->isSearchable() && $field->getType() == FieldInterface::FIELD_TYPE_STRING;
 }