You are here

class PluginNotFoundException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php \Drupal\Component\Plugin\Exception\PluginNotFoundException

Plugin exception class to be thrown when a plugin ID could not be found.

Hierarchy

Expanded class hierarchy of PluginNotFoundException

18 files declare their use of PluginNotFoundException
DefaultLazyPluginCollection.php in core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php
Contains \Drupal\Core\Plugin\DefaultLazyPluginCollection.
DiscoveryTrait.php in core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php
Contains \Drupal\Component\Plugin\Discovery\DiscoveryTrait.
EntityDefinitionUpdateTest.php in core/modules/system/src/Tests/Entity/EntityDefinitionUpdateTest.php
Contains \Drupal\system\Tests\Entity\EntityDefinitionUpdateTest.
EntityFieldManagerTest.php in core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
Contains \Drupal\Tests\Core\Entity\EntityFieldManagerTest.
EntityImageStyle.php in core/modules/image/src/Plugin/migrate/destination/EntityImageStyle.php
Contains \Drupal\image\Plugin\migrate\destination\EntityImageStyle.

... See full list

File

core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php, line 13
Contains \Drupal\Component\Plugin\Exception\PluginNotFoundException.

Namespace

Drupal\Component\Plugin\Exception
View source
class PluginNotFoundException extends PluginException {

  /**
   * Construct an PluginNotFoundException exception.
   *
   * @param string $plugin_id
   *   The plugin ID that was not found.
   *
   * @see \Exception for remaining parameters.
   */
  public function __construct($plugin_id, $message = '', $code = 0, \Exception $previous = NULL) {
    if (empty($message)) {
      $message = sprintf("Plugin ID '%s' was not found.", $plugin_id);
    }
    parent::__construct($message, $code, $previous);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PluginNotFoundException::__construct public function Construct an PluginNotFoundException exception.