Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Drupal\Core\Extension; use Drupal\Core\Config\StorageInterface; /** * ..
Decoded Output download
<?php
namespace Drupal\Core\Extension;
use Drupal\Core\Config\StorageInterface;
/**
* Special interface for module uninstall validators for configuration import.
*
* A module uninstall validator that needs different functionality prior to a
* configuration import should implement this interface and be defined in
* a Drupal @link container service @endlink that is tagged
* module_install.uninstall_validator. If autoconfiguration is enabled, the
* service will be automatically tagged.
*/
interface ConfigImportModuleUninstallValidatorInterface extends ModuleUninstallValidatorInterface {
/**
* Determines reasons a module can not be uninstalled prior to config import.
*
* @param string $module
* A module name.
* @param \Drupal\Core\Config\StorageInterface $source_storage
* Storage object used to read configuration that is about to be imported.
*
* @return string[]
* An array of reasons the module can not be uninstalled, empty if it can.
* Each reason should not end with any punctuation since multiple reasons
* can be displayed together.
*
* @see \Drupal\Core\EventSubscriber\ConfigImportSubscriber::validateModules()
*/
public function validateConfigImport(string $module, StorageInterface $source_storage): array;
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\Core\Extension;
use Drupal\Core\Config\StorageInterface;
/**
* Special interface for module uninstall validators for configuration import.
*
* A module uninstall validator that needs different functionality prior to a
* configuration import should implement this interface and be defined in
* a Drupal @link container service @endlink that is tagged
* module_install.uninstall_validator. If autoconfiguration is enabled, the
* service will be automatically tagged.
*/
interface ConfigImportModuleUninstallValidatorInterface extends ModuleUninstallValidatorInterface {
/**
* Determines reasons a module can not be uninstalled prior to config import.
*
* @param string $module
* A module name.
* @param \Drupal\Core\Config\StorageInterface $source_storage
* Storage object used to read configuration that is about to be imported.
*
* @return string[]
* An array of reasons the module can not be uninstalled, empty if it can.
* Each reason should not end with any punctuation since multiple reasons
* can be displayed together.
*
* @see \Drupal\Core\EventSubscriber\ConfigImportSubscriber::validateModules()
*/
public function validateConfigImport(string $module, StorageInterface $source_storage): array;
}
Function Calls
None |
Stats
MD5 | 2243f22b10adfcc332d48a703395b6bf |
Eval Count | 0 |
Decode Time | 134 ms |