Skip to content

Kirby 4.4.1

$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 ?>