Initial farm.update service with rebuild() method.

This commit is contained in:
Michael Stenta 2021-09-16 06:08:36 -04:00
parent fbb589655d
commit 2dd6a268f8
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,3 @@
services:
farm.update:
class: Drupal\farm_update\FarmUpdate

View File

@ -0,0 +1,17 @@
<?php
namespace Drupal\farm_update;
/**
* Farm update service.
*/
class FarmUpdate implements FarmUpdateInterface {
/**
* {@inheritdoc}
*/
public function rebuild(): void {
}
}

View File

@ -0,0 +1,15 @@
<?php
namespace Drupal\farm_update;
/**
* Farm update service interface.
*/
interface FarmUpdateInterface {
/**
* Rebuild farmOS configuration.
*/
public function rebuild(): void;
}