Areablock : How to get the name defined in getName()?


#1

Hi there,

I want to create a new areablock, so I have these 2 files:
/app/Resources/views/Areas/myLittleAreaBlock/view.html.php
/src/AppBundle/Document/myLittleAreaBlock.php

In the last one, I have this very basic code:
<?php

namespace AppBundle\Document\Areabrick;

class AtpColumnWysiwygImage extends AbstractAreabrick
{
    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'Colonne WYSIWYG + image';
    }
}

My question is : wow can I get the value “Colonne WYSIWY + image” inside my file view.html.php ? I suppose it is something like $…->getName() ?

Thanks you,
Jerome