'url' => 'civicrm/event/manage/location',
'field' => 'loc_block_id',
];
+ // Check to see if CiviContribute is an enabled component.
+ $components = \Civi\Api4\Setting::get()
+ ->addSelect('enable_components')
+ ->execute()[0]['value'];
+ // If CiviContribute is active, create the Fees dropdown menu item.
+ if (in_array('CiviContribute', $components)) {
+ self::$_tabLinks[$cacheKey]['fee']
+ = [
+ 'title' => ts('Fees'),
+ 'url' => 'civicrm/event/manage/fee',
+ 'field' => 'is_monetary',
+ ];
+ }
- self::$_tabLinks[$cacheKey]['fee']
- = [
- 'title' => ts('Fees'),
- 'url' => 'civicrm/event/manage/fee',
- 'field' => 'is_monetary',
- ];
self::$_tabLinks[$cacheKey]['registration']
= [
'title' => ts('Online Registration'),