function Group::getPath

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Theme/DesignToken/Group.php \Drupal\Core\Theme\DesignToken\Group::getPath()

The path of the token or group.

Return value

string The path of the token or group.

Overrides DtcgInterface::getPath

File

core/lib/Drupal/Core/Theme/DesignToken/Group.php, line 61

Class

Group
A group: distinguishable by not having 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.