You are here

class BricksTreeDynamicItem in Bricks​ 8

Same name and namespace in other branches
  1. 2.x modules/bricks_dynamic/src/Plugin/Field/FieldType/BricksTreeDynamicItem.php \Drupal\bricks_dynamic\Plugin\Field\FieldType\BricksTreeDynamicItem

Plugin annotation


@FieldType(
  id = "bricks_dynamic",
  label = @Translation("Bricks (dynamic)"),
  description = @Translation("An entity field containing a tree of dynamic entity reference bricks."),
  category = @Translation("Dynamic Reference"),
  default_widget = "bricks_tree_dynamic",
  default_formatter = "bricks_nested_dynamic",
  list_class = "\Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceFieldItemList",
)

Hierarchy

  • class \Drupal\bricks_dynamic\Plugin\Field\FieldType\BricksTreeDynamicItem extends \Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceItem

Expanded class hierarchy of BricksTreeDynamicItem

File

modules/bricks_dynamic/src/Plugin/Field/FieldType/BricksTreeDynamicItem.php, line 21

Namespace

Drupal\bricks_dynamic\Plugin\Field\FieldType
View source
class BricksTreeDynamicItem extends DynamicEntityReferenceItem {

  /**
   * {@inheritdoc}
   */
  public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
    $properties = parent::propertyDefinitions($field_definition);
    _bricks_field_properties_alter($properties);
    return $properties;
  }

  /**
   * {@inheritdoc}
   */
  public static function schema(FieldStorageDefinitionInterface $field_definition) {
    $schema = parent::schema($field_definition);
    _bricks_field_schema_alter($schema);
    return $schema;
  }

}

Members