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

Breadcrumb

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

function FrozenParameterBag::cannotBeEmpty

Overrides ParameterBag::cannotBeEmpty

File

vendor/symfony/dependency-injection/ParameterBag/FrozenParameterBag.php, line 58

Class

FrozenParameterBag
Holds read-only parameters.

Namespace

Symfony\Component\DependencyInjection\ParameterBag

Code

public function cannotBeEmpty(string $name, string $message = 'A non-empty parameter "%s" is required.') : never {
    throw new LogicException('Impossible to call cannotBeEmpty() on a frozen ParameterBag.');
}

API Navigation

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