You are here

protected function HttpClientManagerPreview::buildOperations in HTTP Client Manager 8

Same name and namespace in other branches
  1. 8.2 src/Controller/HttpClientManagerPreview.php \Drupal\http_client_manager\Controller\HttpClientManagerPreview::buildOperations()
1 call to HttpClientManagerPreview::buildOperations()
HttpClientManagerPreview::view in src/Controller/HttpClientManagerPreview.php
View.

File

src/Controller/HttpClientManagerPreview.php, line 69

Class

HttpClientManagerPreview
Class HttpClientManagerPreview.

Namespace

Drupal\http_client_manager\Controller

Code

protected function buildOperations($api) {
  return [
    '#type' => 'operations',
    '#links' => [
      'view' => [
        'title' => $this
          ->t('View Commands'),
        'url' => Url::fromRoute('http_client_manager.http_service_api_preview_view', [
          'serviceApi' => $api['id'],
        ]),
      ],
    ],
  ];
}