Skip to content

Commit 5980fc4

Browse files
authored
Merge pull request #8 from plesk/atikhonov-tech-readme
Added README.md
2 parents aec0a46 + 3436ae4 commit 5980fc4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
To add recommendations via Advisor Integration API, you need to add a hook that implements `RecommendationsHookInterface`.
2+
This interface contains the following methods:
3+
4+
* With the `getRecommendations` method, you add your recommendations with steps.
5+
Steps in Advisor Integration API are similar to buttons that apply recommendations in the Plesk interface.
6+
For example, the "Configure the Plesk Firewall" recommendation has the "Activate" step/button that turns on the Plesk Firewall.
7+
* The `applyStep` method is called by Advisor every time a customer clicks the button in the Plesk interface to apply a recommendation.
8+
9+
For more information, see `src/plib/hooks/Advisor.php`.

0 commit comments

Comments
 (0)