Skip to content

Commit

Permalink
Issue Metadrop#128: Discorage index entities because search_api has i…
Browse files Browse the repository at this point in the history
…ts own mechanism
  • Loading branch information
Eduardo-Morales-Alberti committed Feb 11, 2022
1 parent 13f5214 commit 209b571
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Behat/Context/SearchApiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class SearchApiContext extends RawDrupalContext
* Index nodes after they have been created.
*
* @afterNodeCreate
*
* @deprecated use tag @search_api instead
* @see https://www.drupal.org/project/search_api/issues/3263875
*/
public function indexNodesAfterCreate(AfterNodeCreateScope $scope) {
$node = $scope->getEntity();
Expand All @@ -41,6 +44,9 @@ public function indexNodesAfterCreate(AfterNodeCreateScope $scope) {
* In case there are referenced entities, try to index the parent.
*
* @afterEntityCreate
*
* @deprecated use tag @search_api instead
* @see https://www.drupal.org/project/search_api/issues/3263875
*/
public function afterEntityCreate(AfterEntityCreateScope $scope) {
$entity = $scope->getEntity();
Expand Down

0 comments on commit 209b571

Please sign in to comment.