public function Common::routeParam in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 src/Services/Common.php \Drupal\filebrowser\Services\Common::routeParam()
@func Helper function to create the parameters when calling a route within filebrowser in case of a sub directory $fid is query_fid (node/18?fid=xx) to return to. @var int $query_fid
Return value
string
File
- src/
Services/ Common.php, line 272
Class
- Common
- Class Common @package Drupal\filebrowser\Services
Namespace
Drupal\filebrowser\ServicesCode
public function routeParam($nid, $query_fid = NULL) {
$p = empty($query_fid) ? [
'nid' => $nid,
'query_fid' => 0,
] : [
'nid' => $nid,
'query_fid' => $query_fid,
];
return $p;
}