Refactored event handler so that key/value pairs for the fields only appears once. It is taken from the module.config file. Created a listener for creating the array which is what the log event depends on. Also created a trait to take away code from
LoggingTable. For now it will be a trait. But in the future we will create a service that will be injected into every controller. Created the revert function for the datatable logging that updates the corresponding attribute table but also inserts into the logging table. That way we have an entire history. Will have to include pagination once the datatable gets too big.