bnomei/kirby-blueprints

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class SortBy extends GenericAttribute
{
    /**
     * Sorts the entries by the given field and order (i.e. title desc) Drag & drop is disabled in this case
     */
    public function __construct(
        public string $sortby
    ) {}
}