Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CriteriaViewRegistry.php

function CriteriaViewRegistry::generateViews

1 call to CriteriaViewRegistry::generateViews()
CriteriaViewRegistry::find in vendor/open-telemetry/sdk/Metrics/View/CriteriaViewRegistry.php
@todo is null the best return type here? what about empty array or exception?

File

vendor/open-telemetry/sdk/Metrics/View/CriteriaViewRegistry.php, line 35

Class

CriteriaViewRegistry

Namespace

OpenTelemetry\SDK\Metrics\View

Code

private function generateViews(Instrument $instrument, InstrumentationScopeInterface $instrumentationScope) : Generator {
    foreach ($this->criteria as $i => $criteria) {
        if ($criteria->accepts($instrument, $instrumentationScope)) {
            (yield $this->views[$i]
                ->project($instrument));
        }
    }
}
RSS feed
Powered by Drupal