Skip to content

Kirby 4.5.0

$site->code()

Filters the Files collection by type code

$site->code(): Kirby\Cms\Files

Return type

Kirby\Cms\Files

Parent class

Kirby\Cms\Site

Example

<?php foreach($site->code()->filterBy('extension', 'css') as $css): ?>
<?= css($css->url()) ?>
<?php endforeach ?>