Merge branch 'MDL-62899-search-icons-master' of https://github.com/dmitriim/moodle
[moodle.git] / user / classes / search / user.php
index 337fa28..479b4e0 100644 (file)
@@ -205,4 +205,15 @@ class user extends \core_search\base {
         return 'user';
     }
 
+    /**
+     * Returns an icon instance for the document.
+     *
+     * @param \core_search\document $doc
+     *
+     * @return \core_search\document_icon
+     */
+    public function get_doc_icon(\core_search\document $doc) : \core_search\document_icon {
+        return new \core_search\document_icon('i/user');
+    }
+
 }