You are here

public function ReleaseNotes::init in Production check & Production monitor 8

Initializes the check plugin.

Overrides ProdCheckBase::init

File

src/Plugin/ProdCheck/Server/ReleaseNotes.php, line 27

Class

ReleaseNotes
Release notes check

Namespace

Drupal\prod_check\Plugin\ProdCheck\Server

Code

public function init() {
  $this->remaining_files = [];
  foreach ($this->configuration['files'] as $file) {
    if (file_exists(DRUPAL_ROOT . '/' . $file)) {
      array_push($this->remaining_files, $file);
    }
  }
}