Lines Matching defs:componentId
151 private string $componentId;
178 public static function createCssSnippetFromComponentId($componentId): Snippet
180 return Snippet::createSnippetFromComponentId($componentId, self::EXTENSION_CSS);
186 public static function createSnippetFromComponentId($componentId, $type): Snippet
188 $path = self::getInternalPathFromNameAndExtension($componentId, $type);
190 ->setComponentId($componentId);
197 * @param string $componentId - the component id is a short id that you will found in the class (for internal snippet, it helps also resolve the file)
201 public static function getOrCreateFromComponentId(string $componentId, string $extension): Snippet
204 $snippetPath = self::getInternalPathFromNameAndExtension($componentId, $extension);
206 ->setComponentId($componentId);
402 public static function createJavascriptSnippetFromComponentId(string $componentId): Snippet
404 return Snippet::createSnippetFromComponentId($componentId, self::EXTENSION_JS);
563 if (isset($this->componentId)) {
564 return $this->componentId;
952 public function setComponentId(string $componentId): Snippet
954 $this->componentId = $componentId;