function EventLogSubscriber::excludeLogFile
Excludes the log file from Package Manager operations.
Parameters
\Drupal\package_manager\Event\CollectPathsToExcludeEvent $event: The event being handled.
File
-
core/
modules/ package_manager/ tests/ modules/ package_manager_test_event_logger/ src/ EventSubscriber/ EventLogSubscriber.php, line 36
Class
- EventLogSubscriber
- Defines an event subscriber to test logging during events in Package Manager.
Namespace
Drupal\package_manager_test_event_logger\EventSubscriberCode
public function excludeLogFile(CollectPathsToExcludeEvent $event) : void {
$event->addPathsRelativeToProjectRoot([
self::LOG_FILE_NAME,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.