How to use for Areabrick views in Pimcore Bundles?

Trying to create a bundle which provides a certain Areabrick. The bundle was automatically generated with pimcore:bundle:generate and the structure is currently like this:


Within the admin I get the following warning:

The view template “Areas/datatable/view.html.twig” for areabrick datatable does not exist

Do I have to seperatly register the view template? Why is it not recognized?

Ok I have found the mistake. Within the Areabrick definition you have to use TEMPLATE_LOCATION_BUNDLE.

 * @inheritDoc
public function getTemplateLocation()
    return static::TEMPLATE_LOCATION_BUNDLE;