Add badge method documentation.
(cherry picked from commit 77ddd32)