classBlockKind
final class BlockKind
Names block kinds the way the profile does.
Methods§
public static function of(Node $node): stringNames the kind of a block.
Parameters
$node | Node | The block |
Returns
string paragraph, quote, bullet-list, ordered-list or unsupportedTest cases 2
Called from 3
- static-call Requirements\Config\Markdown\Profile\AllowedBlocks::check() packages/requirements/src/Config/Markdown/Profile/AllowedBlocks.php:39
- static-call Requirements\Config\Markdown\Profile\AllowedBlocks::check() packages/requirements/src/Config/Markdown/Profile/AllowedBlocks.php:40
- static-call Requirements\Config\Markdown\Profile\SectionBlocks::check() packages/requirements/src/Config/Markdown/Profile/SectionBlocks.php:44
Test cases 11§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 9
DefinitionReaderTestcallsDocumentReaderTestcallsLoaderTestcallsAllowedBlocksTestcallsDocumentSchemaTestcallsSectionBlocksTestcallsReferenceTestcallsMarkdownDocumentTestcallsFormatterTestcalls
Relations§
Static calls 3
- static-call Requirements\Config\Markdown\Profile\AllowedBlocks::check() packages/requirements/src/Config/Markdown/Profile/AllowedBlocks.php:39
- static-call Requirements\Config\Markdown\Profile\AllowedBlocks::check() packages/requirements/src/Config/Markdown/Profile/AllowedBlocks.php:40
- static-call Requirements\Config\Markdown\Profile\SectionBlocks::check() packages/requirements/src/Config/Markdown/Profile/SectionBlocks.php:44