CommerceGuys\Addressing\Formatter\DefaultFormatter::getDefaultOptions PHP Method

getDefaultOptions() protected method

Gets the default options.
protected getDefaultOptions ( ) : array
return array The default options.
    protected function getDefaultOptions()
    {
        return ['html' => true, 'html_tag' => 'p', 'html_attributes' => ['translate' => 'no']];
    }

Usage Example

 /**
  * {@inheritdoc}
  */
 protected function getDefaultOptions()
 {
     return ['html' => false] + parent::getDefaultOptions();
 }