Skip to content
Snippets Groups Projects
automatic_updates.install 727 B
Newer Older
  • Learn to ignore specific revisions
  •  * Contains install and update functions for Automatic Updates.
    
    use Drupal\automatic_updates\Validation\ReadinessRequirements;
    
    /**
     * Implements hook_uninstall().
     */
    function automatic_updates_uninstall() {
      \Drupal::service('automatic_updates.updater')->destroy(TRUE);
    }
    
    
    function automatic_updates_requirements($phase) {
    
        // Check that site is ready to perform automatic updates.
    
        /** @var \Drupal\automatic_updates\Validation\ReadinessRequirements $readiness_requirement */
        $readiness_requirement = \Drupal::classResolver(ReadinessRequirements::class);
        return $readiness_requirement->getRequirements();
      }