class DatabaseDriverUninstallValidator implements ModuleUninstallValidatorInterface (View source)

Provides a proxy class for \Drupal\Core\Extension\DatabaseDriverUninstallValidator.

Traits

Provides dependency injection friendly methods for serialization.

Properties

protected array $_serviceIds

An array of service IDs keyed by property name used for serialization.

from  DependencySerializationTrait
protected array $_entityStorages

An array of entity type IDs keyed by the property name of their storages.

from  DependencySerializationTrait
protected string $drupalProxyOriginalServiceId

The id of the original proxied service.

protected DatabaseDriverUninstallValidator $service

The real proxied service, after it was lazy loaded.

protected ContainerInterface $container

The service container.

Methods

__sleep()

{@inheritdoc}

__wakeup()

{@inheritdoc}

__construct(ContainerInterface $container, string $drupal_proxy_original_service_id)

Constructs a ProxyClass Drupal proxy object.

object
lazyLoadItself()

Lazy loads the real service from the container.

string[]
validate(string $module)

Determines the reasons a module can not be uninstalled.

setStringTranslation(TranslationInterface $translation)

{@inheritdoc}

Details

__sleep()

{@inheritdoc}

__wakeup()

{@inheritdoc}

__construct(ContainerInterface $container, string $drupal_proxy_original_service_id)

Constructs a ProxyClass Drupal proxy object.

Parameters

ContainerInterface $container

The container.

string $drupal_proxy_original_service_id

The service ID of the original service.

protected object lazyLoadItself()

Lazy loads the real service from the container.

Return Value

object

Returns the constructed real service.

string[] validate(string $module)

Determines the reasons a module can not be uninstalled.

Parameters

string $module

A module name.

Return Value

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.

setStringTranslation(TranslationInterface $translation)

{@inheritdoc}

Parameters

TranslationInterface $translation