$tabs = [];
$tabs['settings'] = ['title' => ts('Info and Settings'), 'class' => 'ajaxForm livePage'] + $default;
$tabs['location'] = ['title' => ts('Event Location')] + $default;
- // Check to see if CiviContribute is an enabled component
+ // Check to see if CiviContribute is an enabled component.
$components = \Civi\Api4\Setting::get()
->addSelect('enable_components')
->execute()[0]['value'];
- // if Contribute component is active, create the Fees tab
+ // If CiviContribute is active, create the Fees tab.
if (in_array('CiviContribute', $components)) {
$tabs['fee'] = ['title' => ts('Fees')] + $default;
}