Add method to get entire text layer. This could be useful for search

Cherry picked from wmf8

Change-Id: Ibe45b49754f6907096d0358bf77969f402120112