Skip to content

Commit da41194

Browse files
committed
API Add new configuration for use in CMSMain-like admin
1 parent d57fa75 commit da41194

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/TaxonomyTerm.php

+8
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,21 @@ class TaxonomyTerm extends DataObject implements PermissionProvider
6060

6161
private static $default_sort = 'Sort';
6262

63+
private static string $sort_field = 'Sort';
64+
6365
private static $summary_fields = array(
6466
'Name' => 'Name',
6567
'Type.Name' => 'Type'
6668
);
6769

6870
private static $type_inheritance_enabled = true;
6971

72+
/**
73+
* Css class attached to icons in a CMSMain tree. Also supports font-icon set.
74+
* Overrides cms_icon for most purposes if set on the same class
75+
*/
76+
private static string $cms_icon_class = 'font-icon-tag';
77+
7078
public function getCMSFields()
7179
{
7280
$this->beforeUpdateCMSFields(function (FieldList $fields) {

0 commit comments

Comments
 (0)