public function FieldTypeManager::isContentField in Tooltip Taxonomy 8
Check if a field is content field.
Parameters
string $field_name: The name of the field.
File
- src/
Services/ FieldTypeManager.php, line 35
Class
- FieldTypeManager
- The class for the field type manager.
Namespace
Drupal\tooltip_taxonomy\ServicesCode
public function isContentField($field_name) {
return $field_name === 'body' || strpos($field_name, 'field_') === 0;
}