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

Breadcrumb

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

function MissingBundleClassException::__construct

Constructs a MissingBundleClassException.

Parameters

string $bundle_class: The bundle class which should exist.

File

core/lib/Drupal/Core/Entity/Exception/MissingBundleClassException.php, line 18

Class

MissingBundleClassException
Exception thrown if a bundle class does not exist.

Namespace

Drupal\Core\Entity\Exception

Code

public function __construct(string $bundle_class) {
    $message = sprintf('Bundle class %s does not exist.', $bundle_class);
    parent::__construct($message);
}
RSS feed
Powered by Drupal