You are here

protected function AcquiaContentHubUnregisterHelperTrait::formatOrphanedFiltersTable in Acquia Content Hub 8.2

Format rows for render array.

Return value

array Formatted array for table component.

2 calls to AcquiaContentHubUnregisterHelperTrait::formatOrphanedFiltersTable()
ContentHubDeleteClientConfirmForm::buildForm in src/Form/ContentHubDeleteClientConfirmForm.php
Form constructor.
WebhookDeleteConfirmForm::buildForm in modules/acquia_contenthub_publisher/src/Form/Webhook/WebhookDeleteConfirmForm.php
Form constructor.

File

src/AcquiaContentHubUnregisterHelperTrait.php, line 38

Class

AcquiaContentHubUnregisterHelperTrait
Trait with helper functions for unregistration.

Namespace

Drupal\acquia_contenthub

Code

protected function formatOrphanedFiltersTable(array $filters) : array {
  $rows = [];
  foreach ($filters as $name => $uuid) {
    $rows[] = [
      $name,
      $uuid,
    ];
  }
  return $rows;
}