public function normalize( array $args = [] )
	{
		$defaults = [
			'after'       => '',
			'attributes'  => '',
			'before'      => '',
			'class'       => '',
			'default'     => null,
			'depends'     => null,
			'desc'        => '',
			'errors'      => [],
			'inline'      => false,
			'label'       => '',
			'name'        => '',
			'options'     => [],
			'path'        => '',
			'placeholder' => '',
			'prefix'      => '',
			'render'      => true,
			'suffix'      => null,
			'type'        => 'text',
			'value'       => '',
		];

		$args = $atts = wp_parse_args( $args, $defaults );

		$args['attributes'] = $this->parseAttributes( $atts );
		$args['id']         = $this->parseId( $atts );
		$args['inline']     = $this->parseInline( $atts );
		$args['type']       = $this->parseType( $atts );
		$args['name']       = $this->parseName( $atts );
		$args['options']    = (array) $atts['options']; // make sure this is always an array
		$args['path']       = $atts['name'];
		$args['prefix']     = $this->parsePrefix( $atts );
		$args['value']      = $this->parseValue( $atts );

		$this->args = $args;
		$this->dependencies = $this->getField( $args )->dependencies;

		$this->setDataDepends();
		$this->checkForErrors( $atts );

		return $this;
	}
public function normalize( array $args = [] )
	{
		$defaults = [
			'after'       => '',
			'attributes'  => '',
			'before'      => '',
			'class'       => '',
			'default'     => null,
			'depends'     => null,
			'desc'        => '',
			'errors'      => [],
			'inline'      => false,
			'label'       => '',
			'name'        => '',
			'options'     => [],
			'path'        => '',
			'placeholder' => '',
			'prefix'      => '',
			'render'      => true,
			'suffix'      => null,
			'type'        => 'text',
			'value'       => '',
		];

		$args = $atts = wp_parse_args( $args, $defaults );

		$args['attributes'] = $this->parseAttributes( $atts );
		$args['id']         = $this->parseId( $atts );
		$args['inline']     = $this->parseInline( $atts );
		$args['type']       = $this->parseType( $atts );
		$args['name']       = $this->parseName( $atts );
		$args['options']    = (array) $atts['options']; // make sure this is always an array
		$args['path']       = $atts['name'];
		$args['prefix']     = $this->parsePrefix( $atts );
		$args['value']      = $this->parseValue( $atts );

		$this->args = $args;
		$this->dependencies = $this->getField( $args )->dependencies;

		$this->setDataDepends();
		$this->checkForErrors( $atts );

		return $this;
	}
public function normalize ( array $ args = [ ] ) { $ defaults = [ 'after' => '' , 'attributes' => '' , 'before' => '' , 'class' => '' , 'default' => null , 'depends' => null , 'desc' => '' , 'errors' => [ ] , 'inline' => false , 'label' => '' , 'name' => '' , 'options' => [ ] , 'path' => '' , 'placeholder' => '' , 'prefix' => '' , 'render' => true , 'suffix' => null , 'type' => 'text' , 'value' => '' , ] ; $ args = $ atts = wp_parse_args ( $ args , $ defaults ) ; $ args [ 'attributes' ] = $ this -> parseAttributes ( $ atts ) ; $ args [ 'id' ] = $ this -> parseId ( $ atts ) ; $ args [ 'inline' ] = $ this -> parseInline ( $ atts ) ; $ args [ 'type' ] = $ this -> parseType ( $ atts ) ; $ args [ 'name' ] = $ this -> parseName ( $ atts ) ; $ args [ 'options' ] = ( array ) $ atts [ 'options' ] ; // make sure this is always an array $ args [ 'path' ] = $ atts [ 'name' ] ; $ args [ 'prefix' ] = $ this -> parsePrefix ( $ atts ) ; $ args [ 'value' ] = $ this -> parseValue ( $ atts ) ; $ this -> args = $ args ; $ this -> dependencies = $ this -> getField ( $ args ) -> dependencies ; $ this -> setDataDepends ( ) ; $ this -> checkForErrors ( $ atts ) ; return $ this ; }
Normalize the field arguments

@return $this
Normalize the field arguments