You are here

public function FieldValidationRuleFormBase::updateColumn in Field Validation 8

Handles switching the configuration type selector.

File

src/Form/FieldValidationRuleFormBase.php, line 186

Class

FieldValidationRuleFormBase
Provides a base form for FieldValidationRule.

Namespace

Drupal\field_validation\Form

Code

public function updateColumn($form, FormStateInterface $form_state) {

  //$form['column']['#default_value'] = '';

  //$form['column']['#options'] = $this->findColumn($form_state->getValue('field_name'));

  //\Drupal::logger('field_validation')->notice('123:' . $form_state->getValue('field_name'));

  // \Drupal::logger('field_validation')->notice('123:' . var_export($form['column']['#options'], true));

  /*$form['column']['#options'] = array(
  	  'value' => 'value',
  	);
  	*/

  // \Drupal::logger('field_validation')->notice('123abc:' . var_export($form['column']['#options'], true));
  return $form['column'];

  //return $form;
}