Basically this :
First you have make a Group out of your drums, and in group settings you have to select 'Editing' and make sure 'Phase-Locked Audio' I usally deselect Automation Mode, Mute and Volume because that will effect all your tracks.
Then you will have to select your reference tracks, which is the little green Q button on the left side of your track name. Logic sets all your tracks as reference, I mostly use Kick or Snare, but more preferably Kick and Snare Triggers.
Switch on Flex Editing and set your Editing mode to 'Slicing'. 'Rhythm' also works quite well.
Then on the 'Region' section of the Inspector you have the Quantize function, you can set it to whatever you like. Usually I put the quantisation strength around 70%.
It's definitely trying out and it doesn't always work too well, but it definitely works
Hope that helps