Getting current entry element via plugin in Craft 3 without a hook
Check out Craft::$app-&gt;getElements()-&gt;getElementByUri() -- or you might also use Craft::$app-&gt;getUrlManager()-&gt;getMatchedElement() depending on your use case.


Your friendly neighborhood SEOmatic author :)