Gets the HTML of an address.
public renderAddress ( Twig_Environment $environment, mixed $address, boolean $showName = true, boolean $showEdit = false, string $context = null ) : string | ||
$environment | Twig_Environment | A Twig environment |
$address | mixed | An instance of AddressInterface or array with keys: (id, firstname, lastname, address1, postcode, city, country_code and optionally name, address2, address3) |
$showName | boolean | Display address name? |
$showEdit | boolean | Display edit button? |
$context | string | A context for edit link |
return | string |