imponeer/extension-info-contracts

View on GitHub
src/Features/SupportsBlocksInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Imponeer\Contracts\ExtensionInfo\Features;

use Imponeer\Contracts\ExtensionInfo\Elements\BlockInterface;

/**
 * If extension supports blocks must implement this interface
 *
 * @package Imponeer\Contracts\ExtensionInfo\Features
 */
interface SupportsBlocksInterface
{

    /**
     * Gets blocks data
     *
     * @return BlockInterface[]
     */
    public function getBlocks(): iterable;

}