Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $fields = Craft::$app->fields->getAllFields();
- foreach ($fields as $field) {
- $output[(int) $field->id] = array(
- 'id' => (int) $field->id,
- 'handle' => $field->handle,
- 'name' => $field->name,
- 'instructions' => $field->instructions
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement