getId() public method

플러그인의 ID를 반환한다.
public getId ( ) : string
return string
 /**
  * @depends testConstruct
  *
  * @param \Xpressengine\Plugin\PluginEntity $entity
  */
 public function testGetId($entity)
 {
     $this->assertEquals('plugin_sample', $entity->getId());
 }
 /**
  * 플러그인의 view namespace를 지정한다.
  *
  * @param PluginEntity $entity 플러그인
  *
  * @return void
  */
 private function registerViewNamespace(PluginEntity $entity)
 {
     $this->viewFactory->addNamespace($entity->getId(), $this->pluginsDir . '/' . $entity->getId());
 }
示例#3
0
 /**
  * getSkinDescription
  *
  * @param $id
  * @param $plugin
  *
  * @return array|string
  */
 protected function getSkinDescription($id, PluginEntity $plugin)
 {
     $description = $this->option('description');
     if (!$description) {
         $description = 'The Skin supported by ' . ucfirst($plugin->getId()) . ' plugin.';
     }
     return $description;
 }