Skip to content

Commit

Permalink
ACMS-1984: Moderation dashboard fix for users.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakmishra2 authored and apathak18 committed Oct 26, 2023
1 parent 446a13b commit ca16509
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ function acquia_cms_headless_ui_local_tasks_alter(array &$local_tasks) {
// Edit and View tasks with a deriver (which is why it's prefixed).
elseif (preg_match('/^(media\.tasks:)?entity\.(\S*)\.canonical$/', $id, $matches)) {
$local_tasks[$id]['title'] = t('API');
$local_tasks[$id]['class'] = ViewJsonTask::class;
if ($matches[2] != 'user') {
$local_tasks[$id]['class'] = ViewJsonTask::class;
}
$local_tasks[$id]['entity_type_id'] = $matches[2];
}
}
Expand Down

0 comments on commit ca16509

Please sign in to comment.