class InvalidComponentException

Same name in this branch
  1. 11.x core/modules/sdc/src/Exception/InvalidComponentException.php \Drupal\sdc\Exception\InvalidComponentException
Same name and namespace in other branches
  1. 10 core/modules/sdc/src/Exception/InvalidComponentException.php \Drupal\sdc\Exception\InvalidComponentException

Custom exception for invalid components.

Hierarchy

  • class \Drupal\Core\Render\Component\Exception\InvalidComponentException extends \Drupal\Core\Render\Component\Exception\Exception

Expanded class hierarchy of InvalidComponentException

8 files declare their use of InvalidComponentException
Component.php in core/lib/Drupal/Core/Plugin/Component.php
ComponentMetadata.php in core/lib/Drupal/Core/Theme/Component/ComponentMetadata.php
ComponentMetadataTest.php in core/tests/Drupal/Tests/Core/Theme/Component/ComponentMetadataTest.php
ComponentNodeVisitor.php in core/lib/Drupal/Core/Template/ComponentNodeVisitor.php
ComponentRenderInvalidTest.php in core/tests/Drupal/KernelTests/Components/ComponentRenderInvalidTest.php

... See full list

File

core/lib/Drupal/Core/Render/Component/Exception/InvalidComponentException.php, line 10

Namespace

Drupal\Core\Render\Component\Exception
View source
class InvalidComponentException extends \Exception {

}

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