Skip to content
Snippets Groups Projects

Issue #3231996: Ensure file system is writeable

1 unresolved thread
1 file
+ 11
1
Compare changes
  • Side-by-side
  • Inline
@@ -7,13 +7,23 @@ use Drupal\automatic_updates\Event\UpdateEvent;
use Drupal\automatic_updates\Validation\ValidationResult;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
* Validates that the file system is writable.
*/
class WritableFileSystemValidator implements EventSubscriberInterface {
public function checkFileSystemWritable(UpdateEvent $event){
/**
* Validates that the file system is writable.
*
* @param \Drupal\automatic_updates\Event\UpdateEvent $event
* The update event.
*/
public function checkFileSystemWritable(UpdateEvent $event): void {
$result = ValidationResult::createError([t('file system not writable')]);
$event->addValidationResult($result);
\Drupal::messenger()->addMessage("GOT HERE");
}
/**
* {@inheritdoc}
*/
Loading