Add Land, Structure, and Water asset type modules.
This commit is contained in:
parent
f9fff6f3b7
commit
5f9979c5cf
|
@ -16,9 +16,12 @@
|
|||
function farm_modules() {
|
||||
return [
|
||||
'default' => [
|
||||
'farm_land' => t('Land assets'),
|
||||
'farm_plant' => t('Plant assets'),
|
||||
'farm_animal' => t('Animal assets'),
|
||||
'farm_equipment' => t('Equipment assets'),
|
||||
'farm_structure' => t('Structure assets'),
|
||||
'farm_water' => t('Water assets'),
|
||||
'farm_activity' => t('Activity logs'),
|
||||
'farm_observation' => t('Observation logs'),
|
||||
'farm_seeding' => t('Seeding logs'),
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- farm_land
|
||||
id: land
|
||||
label: Land
|
||||
description: ''
|
||||
workflow: asset_default
|
||||
new_revision: true
|
|
@ -0,0 +1,7 @@
|
|||
name: Land asset
|
||||
description: Adds a Land asset type.
|
||||
type: module
|
||||
package: farmOS Assets
|
||||
core_version_requirement: ^9
|
||||
dependencies:
|
||||
- farm:farm_entity
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\farm_land\Plugin\Asset\AssetType;
|
||||
|
||||
use Drupal\farm_entity\Plugin\Asset\AssetType\FarmAssetType;
|
||||
|
||||
/**
|
||||
* Provides the land asset type.
|
||||
*
|
||||
* @AssetType(
|
||||
* id = "land",
|
||||
* label = @Translation("Land"),
|
||||
* )
|
||||
*/
|
||||
class Land extends FarmAssetType {
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- farm_structure
|
||||
id: structure
|
||||
label: Structure
|
||||
description: ''
|
||||
workflow: asset_default
|
||||
new_revision: true
|
|
@ -0,0 +1,7 @@
|
|||
name: Structure asset
|
||||
description: Adds a Structure asset type.
|
||||
type: module
|
||||
package: farmOS Assets
|
||||
core_version_requirement: ^9
|
||||
dependencies:
|
||||
- farm:farm_entity
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\farm_structure\Plugin\Asset\AssetType;
|
||||
|
||||
use Drupal\farm_entity\Plugin\Asset\AssetType\FarmAssetType;
|
||||
|
||||
/**
|
||||
* Provides the structure asset type.
|
||||
*
|
||||
* @AssetType(
|
||||
* id = "structure",
|
||||
* label = @Translation("Structure"),
|
||||
* )
|
||||
*/
|
||||
class Structure extends FarmAssetType {
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- farm_water
|
||||
id: water
|
||||
label: Water
|
||||
description: ''
|
||||
workflow: asset_default
|
||||
new_revision: true
|
|
@ -0,0 +1,7 @@
|
|||
name: Water asset
|
||||
description: Adds a Water asset type.
|
||||
type: module
|
||||
package: farmOS Assets
|
||||
core_version_requirement: ^9
|
||||
dependencies:
|
||||
- farm:farm_entity
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\farm_water\Plugin\Asset\AssetType;
|
||||
|
||||
use Drupal\farm_entity\Plugin\Asset\AssetType\FarmAssetType;
|
||||
|
||||
/**
|
||||
* Provides the water asset type.
|
||||
*
|
||||
* @AssetType(
|
||||
* id = "water",
|
||||
* label = @Translation("Water"),
|
||||
* )
|
||||
*/
|
||||
class Water extends FarmAssetType {
|
||||
|
||||
}
|
Loading…
Reference in New Issue