bnomei/kirby-blueprints

View on GitHub
classes/Blueprints/Attributes/Layout.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class Layout extends GenericAttribute
{
    /**
     * Changes the layout of the selected entries (list, cards, cardlets)
     */
    public function __construct(
        public string $layout = 'list' // list, cards, cardlets
    ) {}
}