Readable name of moodle/user:viewalldetails capability

Readable name of moodle/user:viewalldetails capability

by Евгений Мамаев -
Number of replies: 2
Picture of Plugin developers

How to get readable name of any core capability, such as moodle/user:viewalldetails?

I try to use get_string('user:viewalldetails'), but no luck

Average of ratings: -
In reply to Евгений Мамаев

Re: Readable name of moodle/user:viewalldetails capability

by Mayank Tyagi -
Hi,

You need to use "get_capability_string('moodle/user:viewalldetails');" to get its string.
Average of ratings: Useful (2)