function hook_simplifying_get_fields_alter in Simplifying 8
Alter to change the list of content fields to be hidden.
Parameters
array $fields: List of content fields to be hidden.
string $type: Content entity type to hide fields.
1 invocation of hook_simplifying_get_fields_alter()
- EntityFields::getDefaultFields in src/
Services/ EntityFields.php - Get entity fields list.
File
- ./
simplifying.api.php, line 16 - Document all supported APIs.
Code
function hook_simplifying_get_fields_alter(array &$fields, string $type) {
// Comment field exclusion.
if ($type == 'comments') {
$fields['format'] = t('Text format selection');
}
}