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

Breadcrumb

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

function AllCriteria::accepts

Overrides SelectionCriteriaInterface::accepts

File

vendor/open-telemetry/sdk/Metrics/View/SelectionCriteria/AllCriteria.php, line 20

Class

AllCriteria

Namespace

OpenTelemetry\SDK\Metrics\View\SelectionCriteria

Code

public function accepts(Instrument $instrument, InstrumentationScopeInterface $instrumentationScope) : bool {
    foreach ($this->criteria as $criterion) {
        if (!$criterion->accepts($instrument, $instrumentationScope)) {
            return false;
        }
    }
    return true;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal