Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

New answers tagged

1 vote

Craft 3: get enabled sites of an entry

$entry->getLocalized()->all() will return an array of the same entry in other locales. You could map that into a list of all of the site's handles: array_map(function($entry) { return $entry-...
user avatar
  • 155

Top 50 recent answers are included