/** * @param array $config Configuration options */ public function __construct(array $config = []) { // Parent constructor parent::__construct(array_merge(['infusable' => true], $config)); // Initialization $this->addClasses(['mw-widget-userInputWidget']); }
public function getConfig(&$config) { if ($this->namespace !== null) { $config['namespace'] = $this->namespace; } return parent::getConfig($config); }
/** * @param array $config Configuration options */ public function __construct(array $config = array()) { // Parent constructor parent::__construct(array_merge($config, array('infusable' => true))); // Initialization $this->addClasses(array('mw-widget-userInputWidget')); }
/** * @param array $config Configuration options */ public function __construct(array $config = []) { // Parent constructor parent::__construct($config); // Initialization $this->addClasses(['mw-widget-userInputWidget']); }
public function getConfig(&$config) { if ($this->namespace !== null) { $config['namespace'] = $this->namespace; } if ($this->relative !== null) { $config['relative'] = $this->relative; } if ($this->suggestions !== null) { $config['suggestions'] = $this->suggestions; } return parent::getConfig($config); }
public function getConfig(&$config) { if ($this->namespace !== null) { $config['namespace'] = $this->namespace; } if ($this->relative !== null) { $config['relative'] = $this->relative; } if ($this->suggestions !== null) { $config['suggestions'] = $this->suggestions; } if ($this->highlightFirst !== null) { $config['highlightFirst'] = $this->highlightFirst; } if ($this->validateTitle !== null) { $config['validateTitle'] = $this->validateTitle; } return parent::getConfig($config); }