Add declarative site module
This commit is contained in:
parent
81fded80df
commit
8d7d667f12
2 changed files with 21 additions and 0 deletions
5
web/modules/custom/riverside_pt/riverside_pt.info.yml
Normal file
5
web/modules/custom/riverside_pt/riverside_pt.info.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
name: Riverside PT
|
||||
type: module
|
||||
description: Custom functionality for Riverside Physical Therapy.
|
||||
package: Custom
|
||||
core_version_requirement: ^11
|
||||
16
web/modules/custom/riverside_pt/riverside_pt.install
Normal file
16
web/modules/custom/riverside_pt/riverside_pt.install
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
use Drupal\node\Entity\NodeType;
|
||||
|
||||
function riverside_pt_install() {
|
||||
$type = NodeType::create([
|
||||
'type' => 'appointment',
|
||||
'name' => 'Appointment',
|
||||
'description' => 'A booking between a Patient and a Provider at a particular time.',
|
||||
'new_revision' => FALSE,
|
||||
'preview_mode' => DRUPAL_DISABLED,
|
||||
'display_submitted' => FALSE,
|
||||
]);
|
||||
$type->save();
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue