function MissingBundleClassException::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Exception/MissingBundleClassException.php \Drupal\Core\Entity\Exception\MissingBundleClassException::__construct()
  2. 11.x core/lib/Drupal/Core/Entity/Exception/MissingBundleClassException.php \Drupal\Core\Entity\Exception\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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.