1

Figured it out, the format it expects is 'source' => 'group: <group UID>' So... protected function createCategoriesField() { // Get the group $group = (new \craft\db\Query()) ->select("id") ->from("fieldgroups") ->where(["name" => "common"]) ->one(); // Get ...


1

Fields are related to entry types via their field layout. You need to find all field layouts your field is attached to then find entry types using these field layouts. Once you have that, fetch all your entries by types. If you already know your field's id, you don't need this but to find the id of your field by its handle: $fieldId = Craft::$app->...


Only top voted, non community-wiki answers of a minimum length are eligible