public function ManagerForm::isFieldStorageExists in Hashtags 8
1 call to ManagerForm::isFieldStorageExists()
- ManagerForm::addField in src/
Form/ ManagerForm.php
File
- src/
Form/ ManagerForm.php, line 137
Class
Namespace
Drupal\hashtags\FormCode
public function isFieldStorageExists($entity_type, $field_name) {
$field_storage = FieldStorageConfig::loadByName($entity_type, $field_name);
if (empty($field_storage)) {
return FALSE;
}
return $field_storage;
}