setBaseTemplate() public method

public setBaseTemplate ( string | Twig_Templat\Twig_Template $baseTemplate )
$baseTemplate string | Twig_Templat\Twig_Template
 public function getExtensions()
 {
     $fieldBlockRenderer = new FieldBlockRenderer();
     $fieldBlockRenderer->setBaseTemplate($this->getTemplatePath('base.html.twig'));
     $fieldBlockRenderer->setFieldDefinitionEditResources([['template' => $this->getTemplatePath('fields_override1.html.twig'), 'priority' => 10], ['template' => $this->getTemplatePath('fields_default.html.twig'), 'priority' => 0], ['template' => $this->getTemplatePath('fields_override2.html.twig'), 'priority' => 20]]);
     return [new FieldEditRenderingExtension($fieldBlockRenderer)];
 }
 public function getExtensions()
 {
     $configResolver = $this->getConfigResolverMock();
     $fieldBlockRenderer = new FieldBlockRenderer();
     $fieldBlockRenderer->setBaseTemplate($this->getTemplatePath('base.html.twig'));
     $fieldBlockRenderer->setFieldViewResources(array(array('template' => $this->getTemplatePath('fields_override1.html.twig'), 'priority' => 10), array('template' => $this->getTemplatePath('fields_default.html.twig'), 'priority' => 0), array('template' => $this->getTemplatePath('fields_override2.html.twig'), 'priority' => 20)));
     $fieldBlockRenderer->setFieldDefinitionViewResources(array(array('template' => $this->getTemplatePath('settings_override1.html.twig'), 'priority' => 10), array('template' => $this->getTemplatePath('settings_default.html.twig'), 'priority' => 0), array('template' => $this->getTemplatePath('settings_override2.html.twig'), 'priority' => 20)));
     return array(new FieldRenderingExtension($fieldBlockRenderer, $this->getContentTypeServiceMock(), $this->getMock('eZ\\Publish\\Core\\MVC\\Symfony\\FieldType\\View\\ParameterProviderRegistryInterface'), new TranslationHelper($configResolver, $this->getMock('eZ\\Publish\\API\\Repository\\ContentService'), array(), $this->getMock('Psr\\Log\\LoggerInterface'))));
 }