You are here

class ContentUninstallValidator in CiviCRM Entity 8.3

Class ContentUninstallValidator.

Hierarchy

Expanded class hierarchy of ContentUninstallValidator

File

src/Entity/ContentUninstallValidator.php, line 13

Namespace

Drupal\civicrm_entity\Entity
View 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

Namesort descending Modifiers Type Description Overrides
ContentUninstallValidator::$contentUninstallValidator protected property
ContentUninstallValidator::$deprecatedProperties protected property
ContentUninstallValidator::$entityTypeManager protected property The entity type manager service.
ContentUninstallValidator::validate public function Determines the reasons a module can not be uninstalled. Overrides ContentUninstallValidator::validate
ContentUninstallValidator::__construct public function Constructs a new ContentUninstallValidator. Overrides ContentUninstallValidator::__construct
DeprecatedServicePropertyTrait::__get public function Allows to access deprecated/removed properties.
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.