clean install

This commit is contained in:
2024-12-10 15:08:16 +01:00
commit e14eb2d8fd
31193 changed files with 3555714 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
langcode: en
status: true
dependencies:
module:
- farm_log
enforced:
module:
- farm_medical
id: medical
label: Medical
description: ''
name_pattern: 'Medical log [log:id]'
workflow: farm_log_workflow
new_revision: true

View File

@@ -0,0 +1,9 @@
name: Medical log
description: Adds a Medical log type for Animal assets.
type: module
package: farmOS Logs
core_version_requirement: ^10
dependencies:
- farm:farm_animal
- farm:farm_entity
- log:log

View File

@@ -0,0 +1,38 @@
<?php
namespace Drupal\farm_medical\Plugin\Log\LogType;
use Drupal\farm_entity\Plugin\Log\LogType\FarmLogType;
/**
* Provides the medical log type.
*
* @LogType(
* id = "medical",
* label = @Translation("Medical"),
* )
*/
class Medical extends FarmLogType {
/**
* {@inheritdoc}
*/
public function buildFieldDefinitions() {
$fields = parent::buildFieldDefinitions();
// Veterinarian.
$options = [
'type' => 'string',
'label' => $this->t('Veterinarian'),
'description' => $this->t('If a veterinarian was involved, enter their name here.'),
'weight' => [
'form' => -40,
'view' => -40,
],
];
$fields['vet'] = $this->farmFieldFactory->bundleFieldDefinition($options);
return $fields;
}
}