class InvalidBehaviorSettingException in Rabbit Hole 8
Same name and namespace in other branches
- 2.x src/Exception/InvalidBehaviorSettingException.php \Drupal\rabbit_hole\Exception\InvalidBehaviorSettingException
Exception for the case of invalid behavior settings.
Hierarchy
- class \Drupal\rabbit_hole\Exception\InvalidBehaviorSettingException extends \Drupal\rabbit_hole\Exception\Exception
Expanded class hierarchy of InvalidBehaviorSettingException
2 files declare their use of InvalidBehaviorSettingException
- BehaviorSettings.php in src/
Entity/ BehaviorSettings.php - RabbitHoleBehaviorSettingsEntityMethodsTest.php in tests/
src/ Functional/ RabbitHoleBehaviorSettingsEntityMethodsTest.php
File
- src/
Exception/ InvalidBehaviorSettingException.php, line 8
Namespace
Drupal\rabbit_hole\ExceptionView source
class InvalidBehaviorSettingException extends \Exception {
/**
* Rabbit Hole setting name.
*
* @var string
*/
private $setting;
/**
* InvalidBehaviorSettingException constructor.
*
* @param string $setting
* Rabbit Hole setting name.
*/
public function __construct($setting) {
parent::__construct();
$this->setting = $setting;
}
/**
* Returns invalid setting name.
*/
public function getSetting() {
return $this
->setting();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InvalidBehaviorSettingException:: |
private | property | Rabbit Hole setting name. | |
InvalidBehaviorSettingException:: |
public | function | Returns invalid setting name. | |
InvalidBehaviorSettingException:: |
public | function | InvalidBehaviorSettingException constructor. |