Skip to content

Scoping custom Element Actions by specific site/sites #15159

Closed Answered by brandonkelly
mrog-pbs asked this question in Q&A
Discussion options

You must be logged in to vote

currentSite will always be the primary site for control panel requests. You can get the site that the element index is loading via craft\helpers\Cp::requestedSite().

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mrog-pbs
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants