external function problem

external function problem

by Roniel Navarro -
Number of replies: 0
I am having a problem with an external function that I defined for a web service, when I check the functions of the service in which I made it available it does not show the function, if someone could review the definition in the file and give me advice?

Below is the declaration of the function

$functions = [
    'local_sociogram_get_graphs' => [
        'classname'   => 'local_sociogram\external\get_graphs',
        'description' => 'obtener grafos.',
        'type'        => 'read',
        'ajax'        => true,
        'services' => [
            'local_sociogram_get_graphs',
        ],
        'capabilities' =>'local/sociogram:vergrafo',
    ],
];

Average of ratings: -