class ContentUninstallValidator in CiviCRM Entity 8.3
Class ContentUninstallValidator.
Hierarchy
- class \Drupal\Core\Entity\ContentUninstallValidator implements ModuleUninstallValidatorInterface uses DeprecatedServicePropertyTrait, StringTranslationTrait
- class \Drupal\civicrm_entity\Entity\ContentUninstallValidator
Expanded class hierarchy of ContentUninstallValidator
File
- src/
Entity/ ContentUninstallValidator.php, line 13
Namespace
Drupal\civicrm_entity\EntityView source
class ContentUninstallValidator extends EntityContentUninstallValidator {
protected $contentUninstallValidator;
/**
* {@inheritdoc}
*/
public function __construct(ModuleUninstallValidatorInterface $content_uninstall_validator, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
parent::__construct($entity_type_manager, $string_translation);
$this->contentUninstallValidator = $content_uninstall_validator;
}
/**
* {@inheritdoc}
*/
public function validate($module) {
if ($module === 'civicrm_entity') {
return [];
}
return parent::validate($module);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContentUninstallValidator:: |
protected | property | ||
ContentUninstallValidator:: |
protected | property | ||
ContentUninstallValidator:: |
protected | property | The entity type manager service. | |
ContentUninstallValidator:: |
public | function |
Determines the reasons a module can not be uninstalled. Overrides ContentUninstallValidator:: |
|
ContentUninstallValidator:: |
public | function |
Constructs a new ContentUninstallValidator. Overrides ContentUninstallValidator:: |
|
DeprecatedServicePropertyTrait:: |
public | function | Allows to access deprecated/removed properties. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |