PHP code example of umanit / block-collection-bundle
1. Go to this page and download the library: Download umanit/block-collection-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
umanit / block-collection-bundle example snippets
return [
// ...
Umanit\BlockCollectionBundle\UmanitBlockCollectionBundle::class => ['all' => true],
];
declare(strict_types=1);
namespace App\BlockManager;
use App\Entity\Block\Simple;
use App\Form\Type\Block\SimpleType;
use Umanit\BlockBundle\Block\AbstractBlockManager;
class SimpleBlockManager extends AbstractBlockManager
{
use TwigRenderableTrait;
/** @var string */
protected $template = 'simple';
public function getManagedBlockType(): string
{
return Simple::class;
}
public function getManagedFormType(): string
{
return SimpleType::class;
}
}