Xpressengine\Plugin\PluginEntity::getPath PHP Method

getPath() public method

path가 주어질 경우, 주어진 path정보를 추가하여 반환한다.
public getPath ( string $path = '' ) : string
$path string path
return string
    public function getPath($path = '')
    {
        $pluginObj = $this->getObject();
        return $pluginObj->path($path);
    }

Usage Example

 /**
  * @depends testConstruct
  *
  * @param \Xpressengine\Plugin\PluginEntity $entity
  */
 public function testGetters($entity)
 {
     $this->assertEquals('title', $entity->getTitle());
     $this->assertEquals(__DIR__ . '/plugins/plugin_sample', $entity->getPath());
     $this->assertEquals('khongchi plugin.', $entity->getDescription());
     $this->assertCount(6, $entity->getSupport());
     $this->assertEquals('khongchi/plugin_sample', $entity->getName());
     $this->assertEquals(['xpressengine', 'board'], $entity->getKeywords());
     $this->assertEquals('khongchi', $entity->getAuthors()[0]['name']);
     $this->assertEquals('LGPL-2.0', $entity->getLicense());
 }
All Usage Examples Of Xpressengine\Plugin\PluginEntity::getPath