Update Composer packages

This commit is contained in:
Paul Nicoué 2022-12-19 14:56:05 +01:00
parent 0320235f6c
commit a8b68fb61b
378 changed files with 28466 additions and 28852 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();
}
}