mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Renamed to farm_id_tag
This commit is contained in:
parent
d84a984478
commit
4b17e81b57
4 changed files with 17 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
|||
name: ID Tag
|
||||
name: Farm ID Tag
|
||||
type: module
|
||||
description: Provides a field for FarmOS ID Tags
|
||||
core: 8.x
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\id_tag\Plugin\Field\FieldFormatter;
|
||||
namespace Drupal\farm_id_tag\Plugin\Field\FieldFormatter;
|
||||
|
||||
use Drupal\Core\Field\FieldItemListInterface;
|
||||
use Drupal\Core\Field\FormatterBase;
|
||||
|
@ -9,14 +9,14 @@ use Drupal\Core\Field\FormatterBase;
|
|||
* Plugin implementation of the 'id tag' formatter.
|
||||
*
|
||||
* @FieldFormatter(
|
||||
* id = "id_tag",
|
||||
* label = @Translation("Id Tag"),
|
||||
* id = "farm_id_tag",
|
||||
* label = @Translation("Farm Id Tag"),
|
||||
* field_types = {
|
||||
* "id_tag"
|
||||
* "farm_id_tag"
|
||||
* }
|
||||
* )
|
||||
*/
|
||||
class IdTagFormatter extends FormatterBase {
|
||||
class FarmIdTagFormatter extends FormatterBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
|
@ -1,25 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\id_tag\Plugin\Field\FieldType;
|
||||
namespace Drupal\farm_id_tag\Plugin\Field\FieldType;
|
||||
|
||||
use Drupal\Core\Field\FieldItemBase;
|
||||
use Drupal\Core\Field\FieldStorageDefinitionInterface;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\TypedData\DataDefinition;
|
||||
|
||||
/**
|
||||
* Plugin implementation of the 'id tag' field type.
|
||||
*
|
||||
* @FieldType(
|
||||
* id = "id_tag",
|
||||
* label = @Translation("Id tag"),
|
||||
* id = "farm_id_tag",
|
||||
* label = @Translation("Farm Id tag"),
|
||||
* description = @Translation("This field stores a combination of id, tag type and body location."),
|
||||
* category = @Translation("FarmOS"),
|
||||
* default_widget = "id_tag",
|
||||
* default_formatter = "id_tag"
|
||||
* default_widget = "farm_id_tag",
|
||||
* default_formatter = "farm_id_tag"
|
||||
* )
|
||||
*/
|
||||
class IdTagItem extends FieldItemBase {
|
||||
class FarmIdTagItem extends FieldItemBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\id_tag\Plugin\Field\FieldWidget;
|
||||
namespace Drupal\farm_id_tag\Plugin\Field\FieldWidget;
|
||||
|
||||
use Drupal\Core\Field\FieldItemListInterface;
|
||||
use Drupal\Core\Field\WidgetBase;
|
||||
|
@ -10,14 +10,14 @@ use Drupal\Core\Form\FormStateInterface;
|
|||
* Plugin implementation of the 'id tag' widget.
|
||||
*
|
||||
* @FieldWidget(
|
||||
* id = "id_tag",
|
||||
* label = @Translation("Id Tag"),
|
||||
* id = "farm_id_tag",
|
||||
* label = @Translation("Farm Id Tag"),
|
||||
* field_types = {
|
||||
* "id_tag"
|
||||
* "farm_id_tag"
|
||||
* }
|
||||
* )
|
||||
*/
|
||||
class IdTagWidget extends WidgetBase {
|
||||
class FarmIdTagWidget extends WidgetBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
Loading…
Reference in a new issue