protected function LaunchImportForm::initRootEntitiesList in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Form/LaunchImportForm.php \Drupal\content_synchronizer\Form\LaunchImportForm::initRootEntitiesList()
- 3.x src/Form/LaunchImportForm.php \Drupal\content_synchronizer\Form\LaunchImportForm::initRootEntitiesList()
Init the root entities list for display.
1 call to LaunchImportForm::initRootEntitiesList()
- LaunchImportForm::buildForm in src/
Form/ LaunchImportForm.php - Form constructor.
File
- src/
Form/ LaunchImportForm.php, line 136
Class
- LaunchImportForm
- Launch Import Form.
Namespace
Drupal\content_synchronizer\FormCode
protected function initRootEntitiesList(array &$form) {
$rootEntities = $this->import
->getRootsEntities();
$build = [
'#theme' => 'entities_list_table',
'#entities' => $rootEntities,
'#status_or_bundle' => t('status'),
'#checkbox_name' => 'entities_to_import[]',
'#title' => t('Entities to import'),
'#attached' => [
'library' => [
'content_synchronizer/list',
],
],
];
$form['entities_list'] = $build;
}