Extract function to retrieve the membership labels.
authoreileen <emcnaughton@wikimedia.org>
Wed, 21 Oct 2020 10:51:51 +0000 (23:51 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 10 Dec 2020 20:57:30 +0000 (09:57 +1300)
commitebf7e65fce3391f3be40ed0eae0882cb533e2740
treea496635e990e29f8269db4d239dd7ea43f6b2ad6
parentef84a7da1da67fa6b68f3dd51af5a6d8c77a06d4
Extract function to retrieve the membership labels.

Rather than construct an array (membershipTypes) early on with a db lookup
and pass it around we retrieve the labels when needed using a helper function
to retrieve the values from the already-available array on membership type
details
CRM/Member/Form/Membership.php
tests/phpunit/CRM/Member/Form/MembershipTest.php