I am looking for a programatic way to access an entry by an attribute in PHP, using Craft CMS 3.
Here is what I have so far:
Craft::$app->getEntries()->getEntryById('1234');
getEntryById()
seems to be the only method available off of getEntries()
...
What I would like to do (in pseudo code):
Craft::$app->getEntries()->getEntryByAttribute('ItemNumber', '1234');