/** * @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()); }
/** * 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; }