* @param \Civi\ActionSchedule\Event\MappingRegisterEvent $registrations
*/
public static function onRegisterActionMappings(\Civi\ActionSchedule\Event\MappingRegisterEvent $registrations) {
- $registrations->register(CRM_Event_ActionMapping::create(array(
+ $registrations->register(CRM_Event_ActionMapping::create([
'id' => CRM_Event_ActionMapping::EVENT_TYPE_MAPPING_ID,
'entity' => 'civicrm_participant',
'entity_label' => ts('Event Type'),
'entity_value_label' => ts('Event Type'),
'entity_status' => 'civicrm_participant_status_type',
'entity_status_label' => ts('Participant Status'),
- )));
- $registrations->register(CRM_Event_ActionMapping::create(array(
+ ]));
+ $registrations->register(CRM_Event_ActionMapping::create([
'id' => CRM_Event_ActionMapping::EVENT_NAME_MAPPING_ID,
'entity' => 'civicrm_participant',
'entity_label' => ts('Event Name'),
'entity_value_label' => ts('Event Name'),
'entity_status' => 'civicrm_participant_status_type',
'entity_status_label' => ts('Participant Status'),
- )));
- $registrations->register(CRM_Event_ActionMapping::create(array(
+ ]));
+ $registrations->register(CRM_Event_ActionMapping::create([
'id' => CRM_Event_ActionMapping::EVENT_TPL_MAPPING_ID,
'entity' => 'civicrm_participant',
'entity_label' => ts('Event Template'),
'entity_value_label' => ts('Event Template'),
'entity_status' => 'civicrm_participant_status_type',
'entity_status_label' => ts('Participant Status'),
- )));
+ ]));
}
/**
* Array(string $fieldName => string $fieldLabel).
*/
public function getDateFields() {
- return array(
+ return [
'start_date' => ts('Event Start Date'),
'end_date' => ts('Event End Date'),
'registration_start_date' => ts('Registration Start Date'),
'registration_end_date' => ts('Registration End Date'),
- );
+ ];
}
/**
return \CRM_Event_PseudoConstant::participantRole();
default:
- return array();
+ return [];
}
}