BlockConfigUpdater.php
Same filename and directory in other branches
Namespace
Drupal\blockFile
-
core/
modules/ block/ src/ BlockConfigUpdater.php
View source
<?php
declare (strict_types=1);
namespace Drupal\block;
/**
* Provides a BC layer for modules providing old configurations.
*
* @internal
*/
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;
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| BlockConfigUpdater | Provides a BC layer for modules providing old configurations. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.