Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Dec 2014 at 00:52 UTC
Updated:
20 Mar 2015 at 10:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
abhishek-anand commentedComment #2
abhishek-anand commentedComment #3
jhodgdonCan you just use $view->id() rather than $view->storage->id()?
Comment #4
dawehnerNo you can't, $view is no the entity but the view executable which contains the logic of executing a view.
Comment #5
jhodgdonAh, OK. Then is this RTBC dawehner?
Comment #6
dawehnerI'm drunken and fine with that
Comment #7
alexpottIs it not worth adding a method to ViewExecutable called
id()that just delegates to the $this->storage->id()?Comment #8
vijaycs85Here we go.
Comment #9
dawehnerWhy should it ever be an int?
Comment #10
jhedstromSetting to needs work based on #9. I don't think it ever would return an int.
Also:
While we're here, can we update this '@todo' to an actual docblock comment?
Comment #11
jhodgdonNot docs any more. :)
Comment #12
mrjmd commentedFixes from #10 .
Comment #13
jhedstromI think this now addresses #7.
Comment #14
webchickIndeed.
Committed and pushed to 8.0.x. Thanks!