Similar to #1857376: Provide an area handler that renders an entity it would be also cool to have an automatic entity row plugin for all entities.

CommentFileSizeAuthor
#87 drupal-1881606-87.patch36.33 KBdawehner
#87 interdiff.txt8.83 KBdawehner
#84 drupal-1881606-84.patch29.43 KBdawehner
#84 interdiff.txt2.22 KBdawehner
#82 drupal-1881606-82.patch29.45 KBdawehner
#80 drupal-1881606-80.patch23.97 KBdawehner
#80 interdiff.txt970 bytesdawehner
#76 drupal-1881606-76.patch24.16 KBdawehner
#76 interdiff.txt589 bytesdawehner
#74 interdiff.txt646 bytesjibran
#74 drupal-1881606-74.patch23.77 KBjibran
#72 drupal-1881606-72.patch23.14 KBdawehner
#67 drupal-1881606-67.patch20.9 KBdawehner
#62 drupal-1881606-62.patch27.39 KBdawehner
#62 interdiff.txt618 bytesdawehner
#60 drupal-1881606-60.patch27.34 KBdawehner
#60 interdiff.txt1.06 KBdawehner
#55 drupal-1881606-55.patch27.34 KBdawehner
#55 interdiff.txt4.08 KBdawehner
#49 drupal-1881606-49.patch26.21 KBdawehner
#49 interdiff.txt3.67 KBdawehner
#47 drupal-1881606-47.patch26.01 KBdawehner
#47 interdiff.txt485 bytesdawehner
#45 drupal-1881606-45.patch25.85 KBdawehner
#41 drupal-1881606-41.patch25.97 KBdawehner
#41 interdiff.txt9.25 KBdawehner
#38 drupal-1881606-38.patch25.94 KBdawehner
#38 interdiff.txt746 bytesdawehner
#36 drupal-1881606-36.patch25.94 KBdawehner
#36 interdiff.txt521 bytesdawehner
#34 drupal-1881606-34.patch25.94 KBdawehner
#34 interdiff.txt3.8 KBdawehner
#31 drupal-1881606-31.patch25.79 KBdawehner
#31 interdiff.txt721 bytesdawehner
#29 drupal-1881606-29.patch25.09 KBdawehner
#29 interdiff.txt2.06 KBdawehner
#26 drupal-1881606-26.patch23.03 KBdawehner
#26 interdiff.txt14.42 KBdawehner
#21 drupal-1881606-21.patch11.97 KBdawehner
#21 interdiff.txt2.77 KBdawehner
#20 drupal-1881606-20.patch5.13 KBdawehner
#18 drupal-1881606-18.patch10.14 KBdawehner
#15 drupal-1881606-15.patch10.39 KBdawehner
#15 interdiff.txt1.57 KBdawehner
#12 drupal-1881606-12.patch10.41 KBdawehner
#12 interdiff.txt948 bytesdawehner
#1 drupal-1881606-1.patch10.21 KBdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Needs review
FileSize
10.21 KB

This should be pretty fine already.

Status: Needs review » Needs work
Issue tags: -VDC

The last submitted patch, drupal-1881606-1.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review

#1: drupal-1881606-1.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +VDC

The last submitted patch, drupal-1881606-1.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
dawehner’s picture

Issue tags: -VDC

#1: drupal-1881606-1.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, drupal-1881606-1.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review

#1: drupal-1881606-1.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +VDC

The last submitted patch, drupal-1881606-1.patch, failed testing.

dawehner’s picture

So the basic problem here is that CachePluginBase uses $display_handler->output which is currently a render array.

If we convert it to a string, we have problems during rendering, because we expect a render array there.

olli’s picture

Looks like #1 almost works. I do not see any problems with or without caching, but installer failed to find ViewExecutable in views.module on line 832.

dawehner’s picture

Status: Needs work » Needs review
FileSize
948 bytes
10.41 KB

Interesting, thanks for describing the error. This seems to be something new relative to before.

I provided a fix, but does the cache tests of views run for you?

Status: Needs review » Needs work

The last submitted patch, drupal-1881606-12.patch, failed testing.

olli’s picture

Right, did not try that test before and same exceptions here. Which part of the patch is causing that test to fail?

Nothing to help there but i noticed "Undefined index: in Drupal\views\Plugin\views\row\EntityRow->summaryTitle() (line 115)" in views ui when adding a view with entity:taxonomy_term. Also:

+++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.php
@@ -0,0 +1,78 @@
+          'id' => 'entity_row',

Views ui thinks the id should be something like entity:$entity_type.

+++ b/core/modules/views/tests/views_test_config/test_views/views.view.test_entity_row.yml
@@ -0,0 +1,36 @@
+disabled: '0'

status

+++ b/core/modules/views/tests/views_test_config/test_views/views.view.test_entity_row.yml
@@ -0,0 +1,36 @@
+name: test_entity_row

id

dawehner’s picture

Status: Needs work » Needs review
FileSize
1.57 KB
10.39 KB

Thanks for all this reviews!

Oh right, that change have to be made as well.

Status: Needs review » Needs work

The last submitted patch, drupal-1881606-15.patch, failed testing.

olli’s picture

Looks like serializing the viewsData property in ViewsEntityRow is causing that failure.

dawehner’s picture

Status: Needs work » Needs review
FileSize
10.14 KB

You are right, it feels like this bits us in all different kind of places already.

olli’s picture

Status: Needs review » Needs work

Maybe we should to implement Serializable in things we cache, but that is probably out of scope here. For this issue:
- Moving the base class left few occurences of "Drupal\system\Plugin\views\row\Entity" in the subclasses.
- What about making EntityRow::defineOptions set the first view mode as default to fix the notice in #14?

dawehner’s picture

Status: Needs work » Needs review
FileSize
5.13 KB

Well, I have no clue at all, how to serialize a PDO connection. Afaik this is just impossible by design, but if we could do it, then we should do in core directly.

Fixed your two comments and moved the file into the views folder.

dawehner’s picture

FileSize
2.77 KB
11.97 KB

Totally screwed the patch.

jenlampton’s picture

I'm attempting to create a view of taxonomy terms, where I'm showing the full view mode.

In the views wizard, I select "taxonomy term" and check the box for "create a page". Under "display format" If I choose "unformatted list" of "taxonomy term" and click "save & edit" I get the following error:

Error message
Drupal\Component\Plugin\Exception\PluginException: Plugin (entity:taxonomy_term) instance class "Drupal\system\Plugin\views\row\EntityRow" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 68 of drupal-8.x-dev/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).
The website has encountered an error. Please try again later.

leaving as needs review incase these errors have nothing to do with your magic :)

EclipseGc’s picture

+++ b/core/modules/user/user.views.incundefined
@@ -400,3 +400,14 @@ function user_views_query_substitutions($view) {
+function user_views_plugins_row_alter(&$data) {
+  unset($data['entity:user']);

Why not remove the annotation from Drupal\user\Plugin\views\row\UserRow and do


function user_views_plugins_row_alter(&$data) {
  $data['entity:user']['class'] = 'Drupal\user\Plugin\views\row\UserRow';
}

instead? This gives other entity providers a really clear way to provide an override mechanic for the entity row in core, and should reduce some of the head scratching with the unsets.

Also, you'd probably move that file out of a directory that will get parsed for annotations, but I don't think that's a requirement.

Eclipse

damiankloip’s picture

I'm not sure about Eclipses comment, so I will let you decide on that :) Seems a bit weird to have a plugin we are using but intentionally not parsing an annotation definition for it?

+++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.phpundefined
@@ -0,0 +1,64 @@
+      if (isset($entity_info['base_table']) && drupal_container()->get('views.views_data')->get($entity_info['base_table'])) {

We can also move the views_data and create a variable for it outside the foreach loop.

EclipseGc’s picture

Well I suggested we remove the annotation for that class as well.

Eclipse

dawehner’s picture

FileSize
14.42 KB
23.03 KB

@jenlampton
Thanks for testing the patch! I got a different error when selecting taxonomy terms. Your error seems to be referring to an old version of the patch, or some kind of cached views data. Maybe it helps if you clear the views caches under admin/structure/views/settings/advanced.

@eclipseGC
That's a good idea, as it makes the classes easier to read. One disadvantage though is, that you don't longer have a good an easy example for other people, what to put into the plugin data. Let's see what the testbot tells us.

EclipseGc’s picture

Yup, like that (hope it passes since I'm commenting before hand).

Since it's specific to entities and rows, we don't need another example. This is saying "Extend EntityRow, and write your own entity's needs, and then alter it in" which should be pretty easy to follow, and hopefully gives greater insight into the fact that you can do this with almost any plugin, which is ridiculously empowering as a developer.

Eclipse

Status: Needs review » Needs work

The last submitted patch, drupal-1881606-26.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
FileSize
2.06 KB
25.09 KB

This should fix a lot of them.

Status: Needs review » Needs work

The last submitted patch, drupal-1881606-29.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
FileSize
721 bytes
25.79 KB

I'm glad that one was easy to fix.

damiankloip’s picture

Status: Needs review » Needs work
+++ b/core/modules/comment/comment.views.incundefined
@@ -549,3 +549,14 @@ function comment_views_data_alter(&$data) {
+ * Removes the comment row plugin provided by the generic row plugin.

+++ b/core/modules/node/node.views.incundefined
@@ -692,3 +692,14 @@ function node_views_wizard() {
+ * Removes the node row plugin provided by the generic row plugin.

I think we should say Replaces or overrides instead of removes.

+++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/row/CommentRow.phpundefined
@@ -2,32 +2,20 @@
- *
- * @Plugin(
- *   id = "comment",
- *   module = "comment",
- *   title = @Translation("Comment"),
- *   help = @Translation("Display the comment with standard comment view."),
- *   base = {"comment"},
- *   entity_type = "comment",
- *   type = "normal"
- * )

I still find this odd that we are not having an annotation here, but it also makes sense just to swap out the class.

+++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.phpundefined
@@ -0,0 +1,66 @@
+    $entity_types = entity_get_info();

Oooo, is this deprecated now? I say leave it in because I hate the proposed 'new' way.

+++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.phpundefined
@@ -0,0 +1,66 @@
+    $this->derivatives = array();

This is already defaulted to an array in the class definition.

+++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.phpundefined
@@ -0,0 +1,66 @@
+      if (isset($entity_info['base_table']) && drupal_container()->get('views.views_data')->get($entity_info['base_table'])) {

I think I mentioned this above somewhere but we can move the drupal_container()->get('views.views_data'); outside the foreach loop.

+++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/RowEntityTest.phpundefined
@@ -0,0 +1,55 @@
+    // @todo The entity_test entity isn't rendered so let's use taxonomy term.

I guess this should lose the @todo or it should say 'Replace with entity_test implementation when it can be rendered.' or something.

aspilicious’s picture

+++ b/core/modules/comment/comment.views.incundefined
@@ -549,3 +549,14 @@ function comment_views_data_alter(&$data) {
+
+/**
+ * Implements hook_views_plugins_row_alter().
+ *
+ * Removes the comment row plugin provided by the generic row plugin.
+ *
+ * @see \Drupal\views\Plugin\views\row\EntityRow
+ */
+function comment_views_plugins_row_alter(&$data) {
+  $data['entity:comment']['class'] = 'Drupal\comment\Plugin\views\row\CommentRow';

Doc code mismatch. Nothing gets removed. Only the class gets changed. :)

dawehner’s picture

Status: Needs work » Needs review
FileSize
3.8 KB
25.94 KB

Thanks for the feedback, both!

aspilicious’s picture

+++ b/core/modules/comment/comment.views.incundefined
@@ -549,3 +549,14 @@ function comment_views_data_alter(&$data) {
+ * Replaces the generic row plugin by a custom one for nodes.

comments :)

dawehner’s picture

FileSize
521 bytes
25.94 KB

He, true

damiankloip’s picture

Status: Needs review » Needs work
+++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/RowEntityTest.phpundefined
@@ -0,0 +1,56 @@
+    // @todo Replaces the taxonomy term used here with the entity_test entity

s/Replaced/Replace - Sorry!!

dawehner’s picture

Status: Needs work » Needs review
FileSize
746 bytes
25.94 KB

No problem!

rlmumford’s picture

Status: Needs review » Needs work
+++ b/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_user_uid.ymlundefined
@@ -39,7 +39,7 @@ display:
+        type: entity:node

This might need to be in quotes because of the ':'. I don't know how much testing there is for this sort of thing yet, so I'm not sure how to check if all is ok.

+++ b/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_taxonomy_node_term_data.ymlundefined
@@ -66,7 +66,7 @@ display:
+        type: entity:node

As above, also a few more times throughout the patch.

The rest looks good to me!

damiankloip’s picture

Well if it didn't parse the yaml correctly without quotes you definitely wouldn't be getting a green patch :)

I guess we should do whatever would happen when the configuration system writes this normally with the yaml dumper, which I have a feeling might wrap it in quotes, but really it doesn't matter.

dawehner’s picture

Status: Needs work » Needs review
FileSize
9.25 KB
25.97 KB

After manual saving a view, the yaml parsed used '', so let's do it here.

EclipseGc’s picture

Status: Needs review » Needs work

I'm 99% certain it wraps in single quotes.

Eclipse

dawehner’s picture

Status: Needs work » Needs review

Hey :)

jenlampton’s picture

Status: Needs review » Needs work

erm, I think it needs a reroll. Stuff explodes now, I can't even get to views page to clear views caches.

Additional uncaught exception thrown while handling exception.
dawehner’s picture

Status: Needs work » Needs review
FileSize
25.85 KB

@jenlampton
You are right, there has been some recent changes in the plugin system, which forces that.

Sadly everyone who uses /node have to reinstall drupal with that change, as the /node view uses a not defined plugin ID with that.

interdiff sadly failed on that files

Status: Needs review » Needs work

The last submitted patch, drupal-1881606-45.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
FileSize
485 bytes
26.01 KB

Forgot the move of the file and broke the yml file.

olli’s picture

+++ b/core/modules/comment/comment.views.inc
@@ -549,3 +549,14 @@ function comment_views_data_alter(&$data) {
+function comment_views_plugins_row_alter(&$data) {
+  $data['entity:comment']['class'] = 'Drupal\comment\Plugin\views\row\CommentRow';
+}

Is it ok not to alter module key?

+++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.php
@@ -0,0 +1,67 @@
+      // Just add support for entity types which have a views integration.
+      if (isset($entity_info['base_table']) && $views_data->get($entity_info['base_table'])) {

Should this skip types which cannot be rendered?

+++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/RowEntityTest.php
@@ -0,0 +1,56 @@
+  /**
+   * Tests the area handler.
+   */
+  public function testEntityArea() {

Area?

+++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/RowEntityTest.php
@@ -0,0 +1,56 @@
+    // @todo Replace the taxonomy term used here with the entity_test entity
+    // once it can be rendered.
+    $term = entity_create('taxonomy_term', array('name' => $this->randomName()));

Can we now use entity_test_render?

+++ b/core/modules/views/views.module
@@ -824,6 +824,18 @@ function views_hook_info() {
+  // During installation the moduleHandler might call hook_hook_info without
+  // having the classloader setup properly.
+  if (class_exists('Drupal\\views\\ViewExecutable')) {

Do we have an issue for this? Until it is fixed, should we inline plugin types here or include_once the file if the class does not exist?

dawehner’s picture

FileSize
3.67 KB
26.21 KB

Is it ok not to alter module key?

Thats a great idea, all of the comments, so let's see whether it works.

EclipseGc’s picture

Is it ok not to alter module key?

That's a really interesting idea. I'll be watching the development of this concept.

Status: Needs review » Needs work

The last submitted patch, drupal-1881606-49.patch, failed testing.

dawehner’s picture

Just to summarize: The problem is that the entity_test_render entity does use the entity_test table for storage, which causes all kind of different issues in various places ... so it seems to be that we should use taxonomy for now, in order to make progress and fix the rest in another follow up.

olli’s picture

+++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/RowEntityTest.php
@@ -0,0 +1,65 @@
+class RowEntityTest extends ViewTestBase {

Could this use ViewUnitTestBase?

+++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/RowEntityTest.php
@@ -0,0 +1,65 @@
+  protected function viewsData() {
+    $data = parent::viewsData();
+
+    $data['entity_test_render'] = $data['entity_test'];
+    $data['entity_test_render']['real table'] = 'entity_test';
+    return $data;
+  }

This would be nice. I thought about changing 'entity type' from 'entity_test' to 'entity_test_render' in entity_test_views_data().

I'm fine with using taxonomy, it works.

dawehner’s picture

Could this use ViewUnitTestBase?

We could though it would be probably way harder with taxonomy

dawehner’s picture

Status: Needs work » Needs review
FileSize
4.08 KB
27.34 KB

So yeah let's use taxonomy for now, and yeah you are right, you can use ViewUnitTestBase for it.

joelpittet’s picture

Status: Needs review » Needs work

After applying #55 patch I got a nasty 'looking' error on clicking edit on an enabled "Taxonomy term" view.

Path:
admin/structure/views/view/taxonomy_term/edit

Error produced:
Drupal\Component\Plugin\Exception\PluginException: The plugin (node) did not specify an instance class. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 62 of core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).

To make extra sure it wasn't caching I did the following:
Cleared cache + views cache cleared + truncated all cache tables + sudo rm -fr sites/default/files/php/

dawehner’s picture

Status: Needs work » Needs review

That's not an issue. We don't update yml files from HEAD to HEAD, so that's not an issue.

joelpittet’s picture

@dawehner, I am new to the yml files setup, is there something I need change to properly test this patch?

dawehner’s picture

Reinstall drupal is the only easy way to do it.

dawehner’s picture

FileSize
1.06 KB
27.34 KB

Label it!

Status: Needs review » Needs work

The last submitted patch, drupal-1881606-60.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
FileSize
618 bytes
27.39 KB

This should fix it.

Status: Needs review » Needs work
Issue tags: -VDC

The last submitted patch, drupal-1881606-62.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
Issue tags: +VDC

#62: drupal-1881606-62.patch queued for re-testing.

olli’s picture

Status: Needs review » Reviewed & tested by the community

Bonus with this patch is that mymodule_views_plugins_[any plugin type]_alter can go into mymodule.views.inc.

catch’s picture

Status: Reviewed & tested by the community » Needs review

Shouldn't the container be got from \Drupal::service() now?

dawehner’s picture

FileSize
20.9 KB

OH totally, fixed that.

Status: Needs review » Needs work
Issue tags: -VDC

The last submitted patch, drupal-1881606-67.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review

#67: drupal-1881606-67.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +VDC

The last submitted patch, drupal-1881606-67.patch, failed testing.

olli’s picture

dawehner’s picture

Status: Needs work » Needs review
FileSize
23.14 KB

Views should be clever enough to figure that out :p

Status: Needs review » Needs work

The last submitted patch, drupal-1881606-72.patch, failed testing.

jibran’s picture

Status: Needs work » Needs review
FileSize
23.77 KB
646 bytes

You missed a place.

Status: Needs review » Needs work

The last submitted patch, drupal-1881606-74.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
FileSize
589 bytes
24.16 KB

Good catch!

Let's also fix the test failure :)

jibran’s picture

Status: Needs review » Reviewed & tested by the community

RTBC as per #66.

catch’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/modules/views/views.moduleundefined
@@ -825,6 +825,17 @@ function views_hook_info() {
+  // During installation the moduleHandler might call hook_hook_info without
+  // having the classloader setup properly.
+  if (class_exists('Drupal\\views\\ViewExecutable')) {
+    // Register a views_plugins alter hook for all plugin types.
+    foreach (ViewExecutable::getPluginTypes() as $type) {
+      $hooks['views_plugins_' . $type . '_alter'] = array(
+        'group' => 'views',
+      );
+    }
+  }

Could this be moved to a separate issue? Is there one already for the hook_hook_info() invocation without the classloader being properly available?

dawehner’s picture

#1975354: hook_hook_info() might be invoked even the namespace hasn't been registered yet. ... let's see whether it passes. It could be that this fix is not needed anymore, because some part of the module handler changed in the meantime.

dawehner’s picture

Status: Needs work » Needs review
FileSize
970 bytes
23.97 KB

So this should work now.

olli’s picture

Status: Needs review » Needs work

Looks like the test is not in the patch anymore..?

+++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/row/CommentRow.php
@@ -37,7 +25,7 @@ protected function defineOptions() {
+   * Overrides \Drupal\views\Plugin\views\row\EntityRow::buildOptionsForm().

+++ b/core/modules/node/lib/Drupal/node/Plugin/views/row/NodeRow.php
@@ -46,7 +33,7 @@ protected function defineOptions() {
+   * Overrides \Drupal\views\Plugin\views\row\EntityRow::buildOptionsForm().

{@inheritdoc}

+++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.php
@@ -0,0 +1,67 @@
+    $entity_types = \Drupal::service('plugin.manager.entity')
+      ->getDefinitions();

Could use \Drupal::entityManager()?

+++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.php
@@ -0,0 +1,67 @@
+      // Just add support for entity types which have a views integration.
+      if (isset($entity_info['base_table']) && $views_data->get($entity_info['base_table'])) {

Missed this one last time.. I still think it should check for hasController($entity_type, 'render') here.

dawehner’s picture

Status: Needs work » Needs review
FileSize
29.45 KB

Thanks for the review!

Additional some cleanup was involved + the entity manager got injected into the plugin.

olli’s picture

Status: Needs review » Needs work

Found one bug while testing manually:

+++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/row/CommentRow.php
@@ -2,32 +2,20 @@
- *   display_types = {"normal"}

+++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.php
@@ -0,0 +1,66 @@
+          'display_type' => array('normal'),

'display_type' -> 'display_types'

+++ b/core/modules/views/lib/Drupal/views/Plugin/views/row/EntityRow.php
@@ -52,18 +59,37 @@ class EntityRow extends RowPluginBase {
+  public function __construct(array $configuration, $plugin_id, array $plugin_definition,EntityManager $entity_manager) {

Space missing after last comma =)

+++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/RowEntityTest.php
@@ -0,0 +1,98 @@
+  public static $modules = array('entity_test', 'taxonomy', 'field', 'entity', 'system');

I guess entity_test is not needed anymore.

dawehner’s picture

Status: Needs work » Needs review
FileSize
2.22 KB
29.43 KB

'display_type' -> 'display_types'

Oh this relative recently changed. Good catch!

olli’s picture

Status: Needs review » Reviewed & tested by the community

Great! Back to RTBC.

tstoeckler’s picture

Status: Reviewed & tested by the community » Needs work

Sorry to push this back, but I'm missing some API documentation on the new hook_views_plugin_PLUGIN_TYPE_alter(&$data) hooks.

dawehner’s picture

Status: Needs work » Needs review
FileSize
8.83 KB
36.33 KB

Yes, there should be new docs. Thanks. I hope the examples are actually sort of useful.

While doing that renaming $data to &$plugins made sense for me.

tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Wow, that is one awesome set of docs!

tim.plunkett’s picture

Issue tags: -VDC

#87: drupal-1881606-87.patch queued for re-testing.

dawehner’s picture

#87: drupal-1881606-87.patch queued for re-testing.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, drupal-1881606-87.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review

#87: drupal-1881606-87.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +VDC

The last submitted patch, drupal-1881606-87.patch, failed testing.

tstoeckler’s picture

Status: Needs work » Reviewed & tested by the community

Weird bot x-post. Still RTBC, though.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed bd1f226 and pushed to 8.x. Thanks!

dawehner’s picture

You are the hero!!

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