function PhpExtensionsValidator::validateXdebug

Flags a warning if Xdebug is enabled.

Parameters

\Drupal\package_manager\Event\StatusCheckEvent $event: The event object.

File

core/modules/package_manager/src/Validator/PhpExtensionsValidator.php, line 56

Class

PhpExtensionsValidator
Performs validation if certain PHP extensions are enabled.

Namespace

Drupal\package_manager\Validator

Code

public function validateXdebug(StatusCheckEvent $event) : void {
    if ($this->isExtensionLoaded('xdebug')) {
        $event->addWarning([
            $this->t('Xdebug is enabled, which may have a negative performance impact on Package Manager and any modules that use it.'),
        ]);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.