InputfieldSelect::renderOptions() method

Render the given options

Note: method was protected prior to 3.0.116

Usage

// basic usage
$string = $inputfieldSelect->renderOptions();

// usage with all arguments
$string = $inputfieldSelect->renderOptions($options = null, bool $allowBlank = true);

Arguments

NameType(s)Description
options (optional)array, null

Options array or omit (null) to use already specified options

allowBlank (optional)bool

Allow first item to be blank when supported? (default=true)

Return value

string


InputfieldSelect methods and properties

API reference based on ProcessWire core version 3.0.244

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits