Skip to content
Snippets Groups Projects
Select Git revision
  • f255702b2ef7a837c37ebe832bf6404bdd5bc6b2
  • master default protected
  • 1.2.3
  • 1.2.2
  • 1.2.1
  • 1.2.0
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0
10 results

JWTToken.php

Blame
  • SelectField.php 496 B
    <?php
    
    namespace WPDesk\Forms\Field;
    
    use WPDesk\Forms\Field;
    
    class SelectField extends BasicField {
    
    	public function get_type(): string {
    		return 'select';
    	}
    
    	public function get_template_name(): string {
    		return 'select';
    	}
    
    	/** @param string[] $options */
    	public function set_options( array $options ): self {
    		$this->meta['possible_values'] = $options;
    
    		return $this;
    	}
    
    	public function set_multiple(): self {
    		$this->attributes['multiple'] = 'multiple';
    
    		return $this;
    	}
    }