public static function Imce::routes in FileField Sources 8
Define routes for Imce source.
Return value
array Array of routes.
File
- src/
Plugin/ FilefieldSource/ Imce.php, line 159
Class
- Imce
- A FileField source plugin to allow referencing of files from IMCE.
Namespace
Drupal\filefield_sources\Plugin\FilefieldSourceCode
public static function routes() {
$routes = [];
$routes['filefield_sources.imce'] = new Route('/file/imce/{entity_type}/{bundle_name}/{field_name}', [
'_controller' => '\\Drupal\\filefield_sources\\Controller\\ImceController::page',
'_title' => 'File Manager',
], [
'_access_filefield_sources_field' => 'TRUE',
]);
return $routes;
}