You are here

protected function ServiceEndpointResources::getModalAttributes in Services 9.0.x

Same name and namespace in other branches
  1. 8.4 src/Controller/ServiceEndpointResources.php \Drupal\services\Controller\ServiceEndpointResources::getModalAttributes()

Get AJAX modal attributes.

Return value

array An array of modal attributes.

1 call to ServiceEndpointResources::getModalAttributes()
ServiceEndpointResources::buildOperationLinks in src/Controller/ServiceEndpointResources.php
Build service resource operations links.

File

src/Controller/ServiceEndpointResources.php, line 185

Class

ServiceEndpointResources
Class \Drupal\services\Controller\ServiceEndpointManageResource.

Namespace

Drupal\services\Controller

Code

protected function getModalAttributes() {
  return [
    'class' => [
      'use-ajax',
    ],
    'data-dialog-type' => 'modal',
    'data-dialog-options' => Json::encode([
      'width' => 800,
    ]),
  ];
}