public function FlowForm::showAllFields in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Form/FlowForm.php \Drupal\cms_content_sync\Form\FlowForm::showAllFields()
- 2.0.x src/Form/FlowForm.php \Drupal\cms_content_sync\Form\FlowForm::showAllFields()
Show all field settings not just the summary.
Parameters
array $form:
File
- src/
Form/ FlowForm.php, line 385
Class
- FlowForm
- Form handler for the Flow add and edit forms.
Namespace
Drupal\cms_content_sync\FormCode
public function showAllFields($form, FormStateInterface $form_state) {
$trigger = $form_state
->getTriggeringElement();
$type_key = $trigger['#entity_type'];
$entity_bundle_name = $trigger['#bundle'];
$this->triggeringType = $type_key;
$this->triggeringBundle = $entity_bundle_name;
$this->triggeredAction = 'fields';
$this
->fixMissingFormStateFromAjax($form, $form_state);
$form_state
->setValue([
$type_key,
$entity_bundle_name,
'fields',
'advanced',
'show-all',
], '1');
$form_state
->setRebuild();
}