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

Breadcrumb

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

function AmbiguousBundleClassException::__construct

Constructs an AmbiguousBundleClassException.

Parameters

string $class: The bundle class which is defined for multiple bundles.

Overrides AmbiguousEntityClassException::__construct

File

core/lib/Drupal/Core/Entity/Exception/AmbiguousBundleClassException.php, line 19

Class

AmbiguousBundleClassException
Exception thrown if a bundle class is defined for multiple bundles.

Namespace

Drupal\Core\Entity\Exception

Code

public function __construct(string $class) {
    $message = sprintf('Multiple bundles are using the bundle class %s.', $class);
    parent::__construct($message);
}

API Navigation

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