OgStandardReferenceItem.php in Organic groups 8
Namespace
Drupal\og\Plugin\Field\FieldTypeFile
src/Plugin/Field/FieldType/OgStandardReferenceItem.phpView source
<?php
declare (strict_types=1);
namespace Drupal\og\Plugin\Field\FieldType;
use Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem;
/**
* Field item class for OG membership references.
*
* @FieldType(
* id = "og_standard_reference",
* label = @Translation("OG membership reference"),
* description = @Translation("An entity field containing an OG membership reference for a non-user entity."),
* category = @Translation("Reference"),
* no_ui = TRUE,
* default_widget = "og_complex",
* default_formatter = "entity_reference_label",
* list_class = "\Drupal\Core\Field\EntityReferenceFieldItemList",
* constraints = {"ValidOgMembershipReference" = {}}
* )
*/
class OgStandardReferenceItem extends EntityReferenceItem {
}
Classes
Name | Description |
---|---|
OgStandardReferenceItem | Field item class for OG membership references. |