Skip to content

Commit

Permalink
[5.x] Add fullyQualifiedHandle method to Blueprint (statamic#11096)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Nov 8, 2024
1 parent c6727f3 commit 1d78ccf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Fields/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ public function namespace(): ?string
return $this->namespace;
}

public function fullyQualifiedHandle(): string
{
$handle = $this->handle();

if ($this->namespace()) {
$handle = $this->isNamespaced()
? $this->namespace().'::'.$handle
: $this->namespace().'.'.$handle;
}

return $handle;
}

public function setOrder($order)
{
if (! is_null($order)) {
Expand Down

0 comments on commit 1d78ccf

Please sign in to comment.