__('Event', 'wp-ultimo'), // singular name of the listed records 'plural' => __('Events', 'wp-ultimo'), // plural name of the listed records 'ajax' => true // does this table support ajax? )); } // end __construct; /** * Returns the markup for the object_type column. * * @since 2.0.0 * * @param \WP_Ultimo\Models\Event $item The event being displayed. * @return string */ public function column_object_type($item) { $object_type = $item->get_object_type(); return "{$object_type}"; } // end column_object_type; /** * Returns the markup for the initiator column. * * @since 2.0.0 * * @param \WP_Ultimo\Models\Event $item The event being displayed. * @return string */ public function column_initiator($item) { $object_initiator = $item->get_initiator(); $object_severity_label = $item->get_severity_label(); $object_severity_class = $item->get_severity_class(); $object_label_tooltip = substr($object_severity_label, 0, 1); if ($object_initiator === 'system') { $avatar = ''; $system_text = ucfirst($object_initiator); // phpcs:disable $html = "