function DesignToken::getScopes

File

core/lib/Drupal/Core/Theme/Entity/DesignToken.php, line 90

Class

DesignToken
Configuration entity.

Namespace

Drupal\Core\Theme\Entity

Code

public function getScopes() : DesignTokenValuePluginCollection {
  if (!isset($this->scopesCollection)) {
    /** @var \Drupal\Core\Theme\DesignToken\DesignTokenValuePluginManagerInterface $manager */
    $manager = \Drupal::service(DesignTokenValuePluginManagerInterface::class);
    $this->scopesCollection = new DesignTokenValuePluginCollection($manager, $this->type, $this->scopes);
  }
  return $this->scopesCollection;
}

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