mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-15 08:17:15 +00:00
- PHP/Intelephense: expose `file_filter` via `ls_specific_settings["php"]`, so that additional extensions containing PHP sources (e.g. Drupal's `.module` / `.install` / `.inc` / `.theme`) become visible to the symbol tools and are indexed by the language server - PHP: treat `.phtml` files as PHP sources by default (all PHP language servers)
This commit is contained in:
1 parent
5c85d961a0
commit
f631a4bceb
6 files changed
+157
-2
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Drupal-style module file: ordinary PHP kept in a non-.php extension.
|
||||
*
|
||||
* Only visible to the symbol tools when ls_specific_settings["php"]["file_filter"] includes
|
||||
* ".module" (see #1710); inert for all tests running with default settings.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_help().
|
||||
*/
|
||||
function drupal_module_help($route_name) {
|
||||
return 'Help for ' . $route_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_cron().
|
||||
*/
|
||||
function drupal_module_cron() {
|
||||
helperFunction();
|
||||
}
|
||||
|
||||
class DrupalModuleController {
|
||||
public function build(): string {
|
||||
return drupal_module_help('help.page.drupal_module');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user