Bolt\Translation\TranslationFile::path PHP Method

path() public method

Get the path to a tranlsation resource.
public path ( ) : array
return array [absolute path, relative path]
    public function path()
    {
        return [$this->absPath, $this->relPath];
    }

Usage Example

Beispiel #1
0
 public function testPath()
 {
     $app = $this->getApp();
     $tr = new TranslationFile($app, 'translations', 'en_GB');
     $path = $tr->path();
     $this->assertEquals(PHPUNIT_WEBROOT . '/app/resources/translations/en_GB/translations.en_GB.yml', $path[0]);
 }
All Usage Examples Of Bolt\Translation\TranslationFile::path