getId() публичный Метод

플러그인의 ID를 반환한다.
public getId ( ) : string
Результат string
 /**
  * @depends testConstruct
  *
  * @param \Xpressengine\Plugin\PluginEntity $entity
  */
 public function testGetId($entity)
 {
     $this->assertEquals('plugin_sample', $entity->getId());
 }
Пример #2
0
 /**
  * 플러그인의 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;
 }