It currently is public, although it overrides ConfigStorageController::postSave which is protected. I didn't know you could do that, but I don't think we should.

Specific instructions

  1. Open the file core/modules/views/lib/Drupal/views/ViewsStorageController.php
  2. Go to line 47
  3. Change "public" to "protected"
  4. Profit!
CommentFileSizeAuthor
#2 protect_views_postSave-1938680-2.patch703 bytestoastieAlex

Comments

dawehner’s picture

Component: comment.module » views.module

Yeah simply novice tasks.

toastieAlex’s picture

Status: Active » Needs review
StatusFileSize
new703 bytes

Simply taking care of novice tasks.

tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Awesome!

damiankloip’s picture

Should we add the leading '\' in the docblock too?

tstoeckler’s picture

In fact that should either be
\Drupal\Config\ConfigStorageController::postSave()
or simply
ConfigStorageController::postSave()
As far as I'm aware we still haven't resolved that discussion. I usually prefer the latter, but I'll defer that to the patch-creator.

toastieAlex’s picture

Assigned: Unassigned » toastieAlex

All the docblocks are the same, so I should update all or none of them. Seems like updating the documentation is a separate issue from changing access on a method.

tstoeckler’s picture

I guess you're right. So let's leave it at RTBC and let the committers decide.

toastieAlex’s picture

xjm’s picture

xjm’s picture

Issue tags: +Quick fix
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Simple enough!

Committed and pushed to 8.x. Thanks!

tim.plunkett’s picture

For anyone looking for the commit, it's here http://drupalcode.org/project/drupal.git/commitdiff/5b1e4d7

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