Commit 9b64d30a authored by alexpott's avatar alexpott
Browse files

Issue #2003316 by toddtomlinson, mari3.14: Rename Views method...

Issue #2003316 by toddtomlinson, mari3.14: Rename Views method retrieve_validated_view() to retrieveValidatedView().
parent 6778f6cc
...@@ -1118,7 +1118,7 @@ protected function set_override_options(array $options, DisplayPluginBase $displ ...@@ -1118,7 +1118,7 @@ protected function set_override_options(array $options, DisplayPluginBase $displ
* @return Drupal\views_ui\ViewUI $view * @return Drupal\views_ui\ViewUI $view
* The validated view object. * The validated view object.
*/ */
protected function retrieve_validated_view(array $form, array &$form_state, $unset = TRUE) { protected function retrieveValidatedView(array $form, array &$form_state, $unset = TRUE) {
// @todo Figure out why all this hashing is done. Wouldn't it be easier to // @todo Figure out why all this hashing is done. Wouldn't it be easier to
// store a single entry and that's it? // store a single entry and that's it?
$key = hash('sha256', serialize($form_state['values'])); $key = hash('sha256', serialize($form_state['values']));
...@@ -1164,7 +1164,7 @@ public function validateView(array $form, array &$form_state) { ...@@ -1164,7 +1164,7 @@ public function validateView(array $form, array &$form_state) {
* Implements Drupal\views\Plugin\views\wizard\WizardInterface::create_view(). * Implements Drupal\views\Plugin\views\wizard\WizardInterface::create_view().
*/ */
function create_view(array $form, array &$form_state) { function create_view(array $form, array &$form_state) {
$view = $this->retrieve_validated_view($form, $form_state); $view = $this->retrieveValidatedView($form, $form_state);
if (empty($view)) { if (empty($view)) {
throw new WizardException('Attempted to create_view with values that have not been validated.'); throw new WizardException('Attempted to create_view with values that have not been validated.');
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment