Redefine div options para soportar seteo de clase de error en clase contenedora,
ademas del agregado del div de mensaje de error que se hace en _getInput().

@param array $options
@return array
430179
protected function _divOptions($options) {
		$divOptions = parent::_divOptions($options);
		if ($this->tagIsInvalid() !== false && $this->_getCustom('errorClass')) {
			$divOptions = $this->addClass($divOptions, $this->_getCustom('errorClass'));
		}
		if ($this->_hasFeedback) {
			$divOptions = $this->addClass($divOptions, 'has-feedback');
		}

		return $divOptions;
	}
1111498
public function setOptions(array $options)
    {
        foreach ($options as $option => $value) {
            $this->setOption($option, $value);
        }

        return $this;
    }
102799
private static function adjustOptions(array $options) {
        $result = [];

        foreach($options as $key => $value) {
            $result[str_replace("-", "_", $key)] = $value;
        }

        return $result;
    }
53598
public function getFormOptions($options = []) {
		if (empty($options) || !is_array($options)) {
			$options = [];
		}

		$optionsDefault = $this->_getOptionsForElem('form');
		$result = $optionsDefault + $options;

		return $result;
	}
375932
private function resolveOptions(array $options = array())
    {
        $this->options["seo"] = $this->seo;

        if (!$this->seo->getTitle() && $options['defaultTitle']) {
            $this->seo->setTitle($options['defaultTitle']);
        }

        if (!$this->seo->getTitle() && $options['defaultKeywords']) {
            $this->seo->setTitle($options['defaultKeywords']);
        }

        if (!$this->seo->getTitle() && $options['defaultDescription']) {
            $this->seo->setTitle($options['defaultDescription']);
        }

        return array_merge($this->options, $options);
    }
445671
public function redirect(array $options = [])
    {
        $plugin     = $this->_request->getParam('plugin');
        $controller = $this->_request->getParam('controller');

        $_options = [
            'apply'   => [],
            'savenew' => [
                'plugin'     => $plugin,
                'controller' => $controller,
                'action'     => 'add'
            ],
            'save' => [
                'plugin'     => $plugin,
                'controller' => $controller,
                'action'     => 'index',
            ]
        ];

        $options = Hash::merge($_options, $options);

        $url = $options['save'];
        if ($rAction = $this->_request->getData('action')) {
            list(, $action) = pluginSplit($rAction);
            $action = Str::low($action);
            if (Arr::key($action, $options)) {
                $url = $options[$action];
            }
        }

        return $this->_controller->redirect($url);
    }
1315417
public function setOptions($options = []) {

		if(false === is_array($options)) {
            return trigger_error(sprintf('Argument 1 passed to %s() must be of the type array, "%s" given', __METHOD__, gettype($options)), E_USER_ERROR);
        }

		$this -> options = array_merge($this -> options, $options);
	}
1041641
private function getValidatorOptions(array $options)
    {
        $resolver = new OptionsResolver();
        $resolver->setDefaults([
            'groups' => null,
            'traverse' => false,
            'deep' => false,
        ]);

        return $resolver->resolve(isset($options['validator']) ? $options['validator'] : []);
    }
791386
protected function prepareOptionsNested(&$options) {

        if ($options) {
            foreach ($options as &$option) {
                $repeat = (isset($option->level) && $option->level - 1 >= 0) ? $option->level - 1 : 0;
                $option->text = str_repeat('- ', $repeat) . $option->text;
            }
        }

        return $options;
    }
508664
public function setOptions(array $options) {
    foreach ($options as $key => $value) {
      if (is_int($key)) {
        $option  = '--' . $value;
      }
      elseif (strlen($key) == 1) {
        $option = '-' . $key;
        if (!empty($value)) {
          $option .= ' ' . escapeshellarg($value);
        }
      }
      else {
        // Do not render --uri=default.
        if ($key == 'uri' && $value == 'default') {
          continue;
        }
        $option = '--' . $key;
        if (!empty($value)) {
          $option .= '=' . escapeshellarg($value);
        }
      }
      if (!in_array($option, $this->options)) {
        $this->options[] = $option;
      }
    }
    return $this;
  }
1247308
protected function transformOptions(array $options)
    {
        $phantomOptions = new Options();

        $phantomOptions->setHeaderContent($this->headerHtml);
        $phantomOptions->setFooterContent($this->footerHtml);

        foreach ($options as $optionName => $optionValue) {
            $setterFunction = 'set' . $optionName;
            if (method_exists($phantomOptions, $setterFunction)) {
                $phantomOptions->$setterFunction($optionValue);
            }
        }

        return $phantomOptions;
    }
383068
protected function resolveCommandOptions(array $options)
    {
        $resolver = new OptionsResolver();

        $resolver
            ->setDefined([
                'description',
                'usage',
                'aliases',
            ])
            ->setDefaults([
                'description' => 'No description provided.',
                'usage'       => '',
                'aliases'     => [],
            ]);

        $options = $resolver->resolve($options);

        if (! empty($options['usage'])) {
            $options['usage'] .= ' ';
        }

        return $options;
    }
698854
public function setOptions(array $options)
    {
        if (isset($options['indentWidth'])) {
            $this->setIndentWidth($options['indentWidth']);
        }
        if (isset($options['indent'])) {
            $this->setIndent($options['indent']);
        }
        if (isset($options['quote'])) {
            $this->setQuote($options['quote']);
        }
        if (isset($options['fgcolor'])) {
            $this->setFgColor($options['fgcolor']);
        }
        if (isset($options['bgcolor'])) {
            $this->setBgColor($options['bgcolor']);
        }
        return $this;
    }
142263
public function options($options = [])
    {
        // remote options
        if (is_string($options)) {
            // reload selected
            if (class_exists($options) && in_array(Model::class, class_parents($options))) {
                return $this->model(...func_get_args());
            }

            return $this->loadRemoteOptions(...func_get_args());
        }

        if ($options instanceof Arrayable) {
            $options = $options->toArray();
        }

        if (is_callable($options)) {
            $this->options = $options;
        } else {
            $this->options = (array) $options;
        }

        return $this;
    }
540440
public function setOptions($options)
    {
        $this->title = (isset($options['title'])) ? $options['title'] : '';
        $this->width = (isset($options['width'])) ? $options['width'] : '';
        $this->order = (isset($options['order'])) ? $options['order'] : true;
        $this->sortable = (isset($options['sortable'])) ? $options['sortable'] : true;
        $this->separatable = (isset($options['separatable'])) ? $options['separatable'] : $this->getSeparatable();
        $this->tableAlias = (isset($options['tableAlias'])) ? $options['tableAlias'] : '';

        if (isset($options['editable']) && $options['editable'] == true) {
            $this->editable = $options['editable'];
            $this->getCell()->addDecorator('editable', array());
        }


        return $this;
    }
1123359
protected function mergeOptions(array $options)
    {
        $merged = [];
        foreach ($this->supportedOptions() as $option) {
            $merged[$option] = $this->mergeOption($option, $options);
        }

        return $merged;
    }
1089372
protected function mergeOptions($options)
    {
        $config = Configuration::config();
        $baseOptions = array_merge($this->options, $config['settings']);
        return array_merge($baseOptions, $options);
    }