FluidTYPO3\Flux\View\TemplatePaths::toArray PHP Method

toArray() public method

public toArray ( ) : array
return array
    public function toArray()
    {
        return array(self::CONFIG_TEMPLATEROOTPATHS => $this->getTemplateRootPaths(), self::CONFIG_LAYOUTROOTPATHS => $this->getLayoutRootPaths(), self::CONFIG_PARTIALROOTPATHS => $this->getPartialRootPaths());
    }

Usage Example

 /**
  * @return void
  */
 public function testDetectAndRegisterAllFluidBackendModules()
 {
     $form = Form::create();
     $instance = $this->getMock('FluidTYPO3\\Fluidbackend\\Service\\ConfigurationService', array('getBackendModuleTemplatePaths', 'getFormFromTemplateFile', 'registerModuleBasedOnFluxForm'));
     $paths = new TemplatePaths('FluidTYPO3.Fluidbackend');
     $instance->expects($this->once())->method('getBackendModuleTemplatePaths')->willReturn(array('FluidTYPO3.Fluidbackend' => $paths->toArray()));
     $instance->expects($this->atLeastOnce())->method('registerModuleBasedOnFluxForm');
     $instance->expects($this->atLeastOnce())->method('getFormFromTemplateFile')->willReturn($form);
     $instance->detectAndRegisterAllFluidBackendModules();
 }
All Usage Examples Of FluidTYPO3\Flux\View\TemplatePaths::toArray