You are here

public function FieldTypeManager::isTextField in Tooltip Taxonomy 8

Check if the field is text field,.

Parameters

string $field_type: Type of field.

File

src/Services/FieldTypeManager.php, line 25

Class

FieldTypeManager
The class for the field type manager.

Namespace

Drupal\tooltip_taxonomy\Services

Code

public function isTextField($field_type) {
  return in_array($field_type, static::TEXT_FIELD_TYPES);
}