CRUDlex\ServiceProvider::isManagingI18n PHP Method

isManagingI18n() public method

Gets whether CRUDlex manages the i18n system.
public isManagingI18n ( ) : boolean
return boolean true if CRUDlex manages the i18n system
    public function isManagingI18n()
    {
        return $this->manageI18n;
    }

Usage Example

 public function testIsManagingI18n()
 {
     $crudServiceProvider = new ServiceProvider();
     $app = new Application();
     $crudServiceProvider->init($this->dataFactory, $this->crudFile, $this->fileProcessorMock, true, $app);
     $read = $crudServiceProvider->isManagingI18n();
     $this->assertTrue($read);
     $crudServiceProvider->init($this->dataFactory, $this->crudFile, $this->fileProcessorMock, false, $app);
     $read = $crudServiceProvider->isManagingI18n();
     $this->assertFalse($read);
 }