2 declare(strict_types = 1);
110 $target = clone $this;
132 $target = clone $this;
140 public function isNew(): bool
143 $this->subject->getIdentifier()
161 if ($this->subject->isNode()
162 && $this->context->getLanguageId() > 0
163 && $this->languageLink !==
null
165 return $this->languageLink->getHead()->getSubject()->getIdentifier();
167 return $this->node->getIdentifier();
186 if ($this->subject->isNode()
187 && $this->context->getLanguageId() > 0
188 && $this->languageLink !==
null
190 return $this->languageLink->getHead()->getSubject()->getIdentifier();
192 if ($this->subject->isNode() && $this->versionLink) {
193 return $this->versionLink->getHead()->getSubject()->getIdentifier();
195 if ($this->subject->isNode()) {
196 return $this->subject->getIdentifier();
198 return $this->node->getIdentifier();