class BlockConfigUpdater
Same name and namespace in other branches
- 11.x core/modules/block/src/BlockConfigUpdater.php \Drupal\block\BlockConfigUpdater
Provides a BC layer for modules providing old configurations.
@internal
Hierarchy
- class \Drupal\block\BlockConfigUpdater
Expanded class hierarchy of BlockConfigUpdater
File
-
core/
modules/ block/ src/ BlockConfigUpdater.php, line 12
Namespace
Drupal\blockView source
class BlockConfigUpdater {
/**
* Flag determining whether deprecations should be triggered.
*
* @var bool
*/
protected bool $deprecationsEnabled = TRUE;
/**
* Stores which deprecations were triggered.
*
* @var array
*/
protected array $triggeredDeprecations = [];
/**
* Sets the deprecations enabling status.
*
* @param bool $enabled
* Whether deprecations should be enabled.
*/
public function setDeprecationsEnabled(bool $enabled) : void {
$this->deprecationsEnabled = $enabled;
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| BlockConfigUpdater::$deprecationsEnabled | protected | property | Flag determining whether deprecations should be triggered. |
| BlockConfigUpdater::$triggeredDeprecations | protected | property | Stores which deprecations were triggered. |
| BlockConfigUpdater::setDeprecationsEnabled | public | function | Sets the deprecations enabling status. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.