# Create block¶

Note

tbc.

tbc.

tbc.

tbc.

tbc.

## Create type¶

First you have to define a class that implements the BlockInterface. On that interface you have to provide a getType. This is the type name we use later display this block. If you want to have some additional helper methods we recommend to extend from AbstractType that provide some helpers like renderTemplate.

<?php

namespace AppBundle\Block;

use Enhavo\Bundle\BlockBundle\Block\AbstractBlockType;

class SliderBlock extends AbstractBlockType
{
public function render($parameters) {$this->renderTemplate('AppBundle:Block:google_analytics.html.twig');
}

public function getType()
{

app.block.google_analytics: