public function EntityFields::getFields in Simplifying 8
Get entity form fields.
2 calls to EntityFields::getFields()
- EntityFields::formFields in src/
Services/ EntityFields.php - Get settings entity form fields.
- EntityFields::hideFields in src/
Services/ EntityFields.php - Hide entity form fields.
File
- src/
Services/ EntityFields.php, line 142
Class
- EntityFields
- Class EntityFields.
Namespace
Drupal\simplifying\ServicesCode
public function getFields($type) {
$fields = $this->settingsactions
->getSettings('entity_fields');
if (isset($fields[$type])) {
$fields = $fields[$type];
}
else {
$fields = $this
->getDefaultFields($type);
if (!empty($fields)) {
$fields = array_keys($fields);
}
}
return $fields;
}