Upgrade to 3.8.0

This commit is contained in:
Bastian Allgeier
2022-10-06 10:11:54 +02:00
parent a9ed4e45ca
commit 7d168aae58
332 changed files with 26337 additions and 21977 deletions

View File

@@ -0,0 +1,39 @@
<?php
namespace Kirby\Uuid;
use Kirby\Cms\Blocks;
use Kirby\Cms\Field;
/**
* UUID for \Kirby\Cms\Block
*
* Not yet supported
* @todo Finish for uuid-block-structure-support
* @codeCoverageIgnore
*
* @package Kirby Uuid
* @author Nico Hoffmann <nico@getkirby.com>
* @link https://getkirby.com
* @copyright Bastian Allgeier
* @license https://getkirby.com/license
*/
class BlockUuid extends FieldUuid
{
protected const TYPE = 'block';
protected const FIELD = 'blocks';
/**
* @var \Kirby\Cms\Block|null
*/
public Identifiable|null $model;
/**
* Converts content field to a Blocks collection
* @internal
*/
public static function fieldToCollection(Field $field): Blocks
{
return $field->toBlocks();
}
}