Address_New

Summary

No summary available.

Source

File: src/BigCommerce/Templates/Address_New.php

class Address_New extends Controller {

	const FORM = 'form';

	protected $template = 'components/address-new.php';


	protected function parse_options( array $options ) {
		$defaults = [];

		return wp_parse_args( $options, $defaults );
	}

	public function get_data() {
		$data                    = $this->options;
		$data[ self::FORM ] = $this->get_form();
		return $data;
	}

	protected function get_form() {
		$form = new Address_Form( [] );
		return $form->render();
	}


}

Methods


User Contributed Notes

You must log in before being able to contribute a note or feedback.