Make buildActionLinks accept FormatterRow instead of some specific arguments

Change-Id: Ia8921d8c67a44de9c1a08528dbb8cafe5df96906