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

Breadcrumb

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

function AbstractSurrogateFragmentRenderer::containsNonScalars

1 call to AbstractSurrogateFragmentRenderer::containsNonScalars()
AbstractSurrogateFragmentRenderer::render in vendor/symfony/http-kernel/Fragment/AbstractSurrogateFragmentRenderer.php
Note that if the current Request has no surrogate capability, this method falls back to use the inline rendering strategy.

File

vendor/symfony/http-kernel/Fragment/AbstractSurrogateFragmentRenderer.php, line 88

Class

AbstractSurrogateFragmentRenderer
Implements Surrogate rendering strategy.

Namespace

Symfony\Component\HttpKernel\Fragment

Code

private function containsNonScalars(array $values) : bool {
    foreach ($values as $value) {
        if (\is_scalar($value) || null === $value) {
            continue;
        }
        if (!\is_array($value) || $this->containsNonScalars($value)) {
            return true;
        }
    }
    return false;
}

API Navigation

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