Skip to content
Snippets Groups Projects

Issue #3500568: Deprecate ConfigProviderBase drupalGetPath() and drupalGetProfile() methods

@@ -293,8 +293,14 @@ abstract class ConfigProviderBase extends PluginBase implements ConfigProviderIn
* @return string
* The path to the requested item or an empty string if the item is not
* found.
*
* @deprecated in config_provider:3.0.0-alpha2 and is removed from config_provider:3.1.0.
* ConfigProviderBase::extensionPathResolver::getPath() should be used
* instead.
* @see https://www.drupal.org/project/config_provider/issues/3500568
*/
protected function drupalGetPath(string $type, string $name) {
@trigger_error(__METHOD__ . '() is deprecated in config_provider:3.0.0-alpha2 and is removed from config_provider:3.1.0. ConfigProviderBase::extensionPathResolver::getPath() should be used instead. See https://www.drupal.org/project/config_provider/issues/3500568', E_USER_DEPRECATED);
return $this->extensionPathResolver->getPath($type, $name);
}
@@ -305,8 +311,13 @@ abstract class ConfigProviderBase extends PluginBase implements ConfigProviderIn
* The name of the installation profile or NULL if no installation profile
* is currently active. This is the case for example during the first steps
* of the installer or during unit tests.
*
* @deprecated in config_provider:3.0.0-alpha2 and is removed from config_provider:3.1.0.
* ConfigProviderBase::installProfile should be used instead.
* @see https://www.drupal.org/project/config_provider/issues/3500568
*/
protected function drupalGetProfile() {
@trigger_error(__METHOD__ . '() is deprecated in config_provider:3.0.0-alpha2 and is removed from config_provider:3.1.0. ConfigProviderBase::installProfile should be used instead. See https://www.drupal.org/project/config_provider/issues/3500568', E_USER_DEPRECATED);
return $this->installProfile;
}
Loading