1
0
This commit is contained in:
Philip Wagner
2024-08-31 10:01:49 +02:00
commit 78b6c0d381
1169 changed files with 235103 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
<?php
namespace Kirby\Parsley;
/**
* Block schema definition
*
* @since 3.5.0
*
* @package Kirby Parsley
* @author Bastian Allgeier <bastian@getkirby.com>,
* @link https://getkirby.com
* @copyright Bastian Allgeier
* @license https://getkirby.com/license
*/
class Schema
{
/**
* Returns the fallback block when no
* other block type can be detected
*/
public function fallback(Element|string $element): array|null
{
return null;
}
/**
* Returns a list of allowed inline marks
* and their parsing rules
*/
public function marks(): array
{
return [];
}
/**
* Returns a list of allowed nodes and
* their parsing rules
*/
public function nodes(): array
{
return [];
}
/**
* Returns a list of all elements that should be
* skipped and not be parsed at all
*/
public function skip(): array
{
return [];
}
}