-
Notifications
You must be signed in to change notification settings - Fork 519
RelatedCodeTabsController
pozil edited this page Nov 14, 2024
·
15 revisions
Apex server side controller for discovering other classes related to the one being viewed
Group Shared Code
SUPPRESSWARNINGS
AURAENABLED
Inspects the ApexClass body definition for a @see
tag in the opening class level doc block. It then parses the
comma separated list and returns it as a list of strings
Note: this method contains a false-positive PMD violation. Normally, we'd want to check for FLS/CRUD here, but for ApexClass a system level object that Admins and users cannot really change we're ok.
| Param | Description |
|---|---|
mainClassName |
The name of the class to inspect |
| Type | Description |
|---|---|
List<String> |
List<String> |
System.debug(RelatedCodeTabsController.getRelatedClasses('RelatedCodeTabsController'));