Skip to content

Commit

Permalink
FEATURE LocationCategory summary and searchable (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish committed Sep 12, 2024
1 parent d2d363b commit 878148a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Model/LocationCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,23 @@ class LocationCategory extends DataObject
'Locations' => Location::class,
];

/**
* @var array
* @config
*/
private static array $summary_fields = [
'Title' => 'Title',
'Locations.Count' => 'Locations',
];

/**
* @var array
* @config
*/
private static array $searchable_fields = [
'Title',
];

/**
* @param bool $includerelations
* @return array
Expand Down

0 comments on commit 878148a

Please sign in to comment.