only in patch2: unchanged: --- a/config_ignore.module +++ b/config_ignore.module @@ -19,3 +19,32 @@ function config_ignore_config_import_steps_alter(&$sync_steps, ConfigImporter $c // workflow. array_push($sync_steps, ['Drupal\config_ignore\ConfigImporterIgnore', 'postImport']); } + +/** + * Implements hook_form_FORM_ID_alter(). + */ +function config_ignore_form_config_admin_import_form_alter(&$form, FormStateInterface $form_state, $form_id) { + // Load the needed services + $storage_sync = \Drupal::service('config.storage.sync'); + $storage = \Drupal::service('config.storage'); + $config_manager = \Drupal::service('config.manager'); + + // Get the ignored entities + $config_ignore_settings = \Drupal::config('config_ignore.settings')->get('ignored_config_entities'); + + $storage_comparer = new StorageComparer($storage_sync, $storage, $config_manager); + foreach ($storage_comparer->getAllCollectionNames() as $collection) { + // Add a new header + $form[$collection]['update']['list']['#header'][] = t('Ignored'); + + // Now check if the rows match any of the ignored entities + foreach ($form[$collection]['update']['list']['#rows'] as $key => $row) { + if (in_array($row['name'], $config_ignore_settings)) { + $form[$collection]['update']['list']['#rows'][$key]['ignored'] = t('✔'); + } + else { + $form[$collection]['update']['list']['#rows'][$key]['ignored'] = t('✖'); + } + } + } +}