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,53 @@
<?php
namespace Drupal\farm_land\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBase;
/**
* Defines the FarmLandType entity.
*
* @ConfigEntityType(
* id = "land_type",
* label = @Translation("Land type"),
* label_collection = @Translation("Land types"),
* handlers = {
* "access" = "\Drupal\entity\EntityAccessControlHandler",
* "permission_provider" = "\Drupal\entity\EntityPermissionProvider",
* },
* entity_keys = {
* "id" = "id",
* "label" = "label",
* },
* config_export = {
* "id",
* "label",
* },
* )
*
* @ingroup farm
*/
class FarmLandType extends ConfigEntityBase implements FarmLandTypeInterface {
/**
* The land type ID.
*
* @var string
*/
protected $id;
/**
* The land type label.
*
* @var string
*/
protected $label;
/**
* {@inheritdoc}
*/
public function getLabel() {
return $this->label;
}
}

View File

@@ -0,0 +1,22 @@
<?php
namespace Drupal\farm_land\Entity;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* Provides an interface for defining FarmLandType config entities.
*
* @ingroup farm
*/
interface FarmLandTypeInterface extends ConfigEntityInterface {
/**
* Returns the land type label.
*
* @return string
* The land type label.
*/
public function getLabel();
}