function DesignToken::getPath

File

core/lib/Drupal/Core/Theme/DesignToken/DesignToken.php, line 63

Class

DesignToken
A token: distinguishable by containing a $value property.

Namespace

Drupal\Core\Theme\DesignToken

Code

public function getPath() : string {
  return $this->parent ? $this->parent
    ->getPath() . '.' . $this->name : $this->name;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.