MDL-56020 search: Adapt code to new style and add tests

This commit is contained in:
Juan Leyva 2023-04-19 15:00:50 +02:00
parent 49e589445d
commit f94e1ef3c9
9 changed files with 321 additions and 314 deletions

View file

@ -1707,12 +1707,11 @@ $functions = array(
'ajax' => true
),
'core_search_get_results' => array(
'classname' => 'core_search_external',
'methodname' => 'get_results',
'classpath' => 'search/classes/external.php',
'description' => 'Search contents.',
'classname' => '\core_search\external\get_results',
'description' => 'Get search results.',
'type' => 'read',
'capabilities' => 'moodle/search:query'
'capabilities' => 'moodle/search:query',
'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE],
),
'core_tag_get_tagindex' => array(
'classname' => 'core_tag_external',