CodeExplorer isShowListing example
} return $fields;
} public function buildColumns(Type
$type): array
{ $fields =
[];
foreach ($type->
getFields() as $field) { if (!
$field->
isShowListing()) { continue;
} $this->
translateField($type,
$field);
$fields[$field->
getName()] =
[ 'header' =>
$field->
getLabel(),
];
} return $fields;
}