yii\widgets\ActiveField::adjustLabelFor PHP Метод

adjustLabelFor() защищенный Метод

Adjusts the for attribute for the label based on the input options.
protected adjustLabelFor ( array $options )
$options array the input options.
    protected function adjustLabelFor($options)
    {
        if (!isset($options['id'])) {
            return;
        }
        $this->_inputId = $options['id'];
        if (!isset($this->labelOptions['for'])) {
            $this->labelOptions['for'] = $options['id'];
        }
    }