Skip to content
Snippets Groups Projects
Commit 6e30bc77 authored by Owen Bush's avatar Owen Bush
Browse files

Added more field inheritance plugins

parent 3e6ed305
No related branches found
No related tags found
No related merge requests found
<?php
namespace Drupal\recurring_events\Plugin\FieldInheritance;
use Drupal\recurring_events\FieldInheritancePluginInterface;
/**
* Boolean Inheritance plugin.
*
* @FieldInheritance(
* id = "boolean_inheritance",
* name = @Translation("Boolean Field Inheritance"),
* types = {
* "boolean"
* }
* )
*/
class BooleanFieldInheritancePlugin extends FieldInheritancePluginBase implements FieldInheritancePluginInterface {
}
<?php
namespace Drupal\recurring_events\Plugin\FieldInheritance;
use Drupal\recurring_events\FieldInheritancePluginInterface;
/**
* Date Inheritance plugin.
*
* @FieldInheritance(
* id = "date_inheritance",
* name = @Translation("Date Field Inheritance"),
* types = {
* "datetime",
* "daterange",
* }
* )
*/
class DateFieldInheritancePlugin extends FieldInheritancePluginBase implements FieldInheritancePluginInterface {
}
<?php
namespace Drupal\recurring_events\Plugin\FieldInheritance;
use Drupal\recurring_events\FieldInheritancePluginInterface;
/**
* Email Inheritance plugin.
*
* @FieldInheritance(
* id = "email_inheritance",
* name = @Translation("Email Field Inheritance"),
* types = {
* "email"
* }
* )
*/
class EmailFieldInheritancePlugin extends FieldInheritancePluginBase implements FieldInheritancePluginInterface {
}
......@@ -13,6 +13,7 @@ use Drupal\recurring_events\FieldInheritancePluginInterface;
* types = {
* "entity_reference",
* "image",
* "file",
* "webform"
* }
* )
......
<?php
namespace Drupal\recurring_events\Plugin\FieldInheritance;
use Drupal\recurring_events\FieldInheritancePluginInterface;
/**
* Number Inheritance plugin.
*
* @FieldInheritance(
* id = "number_inheritance",
* name = @Translation("Number Field Inheritance"),
* types = {
* "decimal",
* "float",
* "integer",
* "list_float",
* "list_integer"
* }
* )
*/
class NumberFieldInheritancePlugin extends FieldInheritancePluginBase implements FieldInheritancePluginInterface {
}
......@@ -13,7 +13,10 @@ use Drupal\recurring_events\FieldInheritancePluginInterface;
* types = {
* "text",
* "text_long",
* "text_with_summary"
* "text_with_summary",
* "string",
* "string_long",
* "list_string"
* }
* )
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment