protected function HttpConfigRequest::urlRouteParameters in HTTP Client Manager 8.2
Same name and namespace in other branches
- 8 src/Entity/HttpConfigRequest.php \Drupal\http_client_manager\Entity\HttpConfigRequest::urlRouteParameters()
Gets an array of placeholders for this entity.
Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic.
Parameters
string $rel: The link relationship type, for example: canonical or edit-form.
Return value
array An array of URI placeholders.
Overrides EntityBase::urlRouteParameters
File
- src/
Entity/ HttpConfigRequest.php, line 90
Class
- HttpConfigRequest
- Defines the Http Config Request entity.
Namespace
Drupal\http_client_manager\EntityCode
protected function urlRouteParameters($rel) {
$uri_route_parameters = parent::urlRouteParameters($rel);
$uri_route_parameters['serviceApi'] = $this
->get('service_api');
$uri_route_parameters['commandName'] = $this
->get('command_name');
return $uri_route_parameters;
}