$page->hasCode()
Checks if the Files collection has any code files
Return type
bool
Parent class
Example
What is a code file?
Kirby considers the following file types as code:
- js
- css
- scss
- rb
- xml
- json
- java
Any html or php files cannot be uploaded to pages for security reasons.