CTools provides a good deal of helpers around Field API: http://drupalcode.org/project/ctools.git/blob/refs/heads/8.x-1.x:/includ...

Views only uses ctools_fields_fake_field_instance(), in Views\field\Plugin\views\field\Field::options_form()

This is blocked on #1735118: Convert Field API to CMI

CommentFileSizeAuthor
#3 view-1741128-3.patch2.6 KBtim.plunkett

Comments

tim.plunkett’s picture

Assigned: Unassigned » bojanz

I'm not 100% sure if this is actually blocked. Any thoughts bojanz?

tim.plunkett’s picture

Status: Postponed » Active

Bojan said he might have time after this Friday.

tim.plunkett’s picture

Assigned: bojanz » Unassigned
Status: Active » Needs review
StatusFileSize
new2.6 KB

I think we can safely move what we need directly into Views for now.

dawehner’s picture

Status: Needs review » Needs work
+++ b/lib/Views/field/Plugin/views/field/Field.phpundefined
@@ -403,6 +395,55 @@ public function buildOptionsForm(&$form, &$form_state) {
+      'entity_type' => 'views_fake',
+      'bundle' => 'views_fake',

We renamed this to _custom because of #1741242: Replace _dummy view mode with _custom, so we should keep with this for now.

tim.plunkett’s picture

Status: Needs work » Needs review
+++ b/lib/Views/field/Plugin/views/field/Field.phpundefined
@@ -403,6 +395,55 @@ public function buildOptionsForm(&$form, &$form_state) {
+        '_custom' => array(
+          'type' => $formatter,
+          'settings' => $formatter_settings,

We renamed the view mode from _dummy to _custom, which is still in this patch.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

I'm sorry.

tim.plunkett’s picture

Status: Reviewed & tested by the community » Fixed

Automatically closed -- issue fixed for 2 weeks with no activity.