Lines Matching defs:elementId
49 private string $elementId;
52 public function __construct(string $elementId, WikiPath $contextPath)
55 $this->elementId = $elementId;
56 if (!in_array($elementId, self::SLOT_IDS)) {
57 throw new ExceptionRuntimeInternal("$elementId is not a valid slot id. Valid ids are (" . ArrayUtility::formatAsString(self::SLOT_IDS) . ").");
64 public static function createFromElementId(string $elementId, WikiPath $contextPath = null): TemplateSlot
72 return new TemplateSlot($elementId, $contextPath);
109 static function getPathNameFromElementId($elementId)
111 switch ($elementId) {
127 throw new ExceptionRuntimeInternal("Internal: The element ($elementId) was unexpected, it's not a slot");
148 $elementId = $this->getElementId();
149 return self::getPathNameFromElementId($elementId);
222 return $this->elementId;