protected function ServiceEndpointResources::getModalAttributes in Services 8.4
Same name and namespace in other branches
- 9.0.x 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\ControllerCode
protected function getModalAttributes() {
return [
'class' => [
'use-ajax',
],
'data-dialog-type' => 'modal',
'data-dialog-options' => Json::encode([
'width' => 800,
]),
];
}