public function ExportForm::processingEntityType in Default Content Deploy 8
Ajax callback for Entity type form element.
Parameters
$form:
\Drupal\Core\Form\FormStateInterface $form_state:
Return value
array
File
- src/
Form/ ExportForm.php, line 221
Class
- ExportForm
- Config Form for run DCD deploy in Admin UI.
Namespace
Drupal\default_content_deploy\FormCode
public function processingEntityType($form, FormStateInterface $form_state) {
$entity_type_id = $form_state
->getValue('entity_type');
$form['settings']['bundle']['#options'] = $this
->getBundlesByEntityTypeId($entity_type_id);
$form['settings']['bundle']['#value'] = '';
return $form['settings']['bundle'];
}