-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3198 from craftcms/feature/purchasables-order-edi…
…t-event Add `ModifyPurchasablesQueryEvent`
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* @link https://craftcms.com/ | ||
* @copyright Copyright (c) Pixel & Tonic, Inc. | ||
* @license https://craftcms.github.io/license/ | ||
*/ | ||
|
||
namespace craft\commerce\events; | ||
|
||
use craft\db\Query; | ||
use yii\base\Event; | ||
|
||
/** | ||
* ModifyPurchasablesTableQueryEvent class. | ||
* | ||
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com> | ||
* @since 4.3.0 | ||
*/ | ||
class ModifyPurchasablesTableQueryEvent extends Event | ||
{ | ||
/** | ||
* @var Query | ||
*/ | ||
public Query $query; | ||
|
||
/** | ||
* @var string|null The search term that is being used in the query, if any | ||
*/ | ||
public ?string $search = null; | ||
} |