Example #1
0
 public function getSchema()
 {
     return array_merge(['alias' => 'string'], parent::getSchema());
 }
Example #2
0
 /**
  * @param AbstractAddress|null $address
  * @return string
  * @deprecated All new code should use renderArray based on Metadata service
  */
 public function getFormat(AbstractAddress $address = null)
 {
     $countryFormat = $address === null ? false : $address->getCountryModel()->getFormat($this->getType()->getCode());
     $format = $countryFormat ? $countryFormat->getFormat() : $this->getType()->getDefaultFormat();
     return $format;
 }