Commit c1d7f6f0 authored by alexpott's avatar alexpott

Issue #2002450 by jazzdrive3: Rename Views method default_display_options() to...

Issue #2002450 by jazzdrive3: Rename Views method default_display_options() to defaultDisplayOptions().
parent 5501be94
......@@ -134,10 +134,10 @@ protected function display_options_row(&$display_options, $row_plugin, $row_opt
}
/**
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::default_display_options().
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
*/
protected function default_display_options() {
$display_options = parent::default_display_options();
protected function defaultDisplayOptions() {
$display_options = parent::defaultDisplayOptions();
// Add permission-based access control.
$display_options['access']['type'] = 'perm';
......
......@@ -40,10 +40,10 @@ class File extends WizardPluginBase {
);
/**
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::default_display_options().
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
*/
protected function default_display_options() {
$display_options = parent::default_display_options();
protected function defaultDisplayOptions() {
$display_options = parent::defaultDisplayOptions();
// Add permission-based access control.
$display_options['access']['type'] = 'perm';
......
......@@ -131,10 +131,10 @@ protected function buildFormStyle(array &$form, array &$form_state, $type) {
}
/**
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::default_display_options().
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
*/
protected function default_display_options() {
$display_options = parent::default_display_options();
protected function defaultDisplayOptions() {
$display_options = parent::defaultDisplayOptions();
// Add permission-based access control.
$display_options['access']['type'] = 'perm';
......
......@@ -83,10 +83,10 @@ protected function rowStyleOptions() {
}
/**
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::default_display_options().
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
*/
protected function default_display_options() {
$display_options = parent::default_display_options();
protected function defaultDisplayOptions() {
$display_options = parent::defaultDisplayOptions();
// Add permission-based access control.
$display_options['access']['type'] = 'perm';
......
......@@ -38,10 +38,10 @@ class TaxonomyTerm extends WizardPluginBase {
);
/**
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::default_display_options().
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
*/
protected function default_display_options() {
$display_options = parent::default_display_options();
protected function defaultDisplayOptions() {
$display_options = parent::defaultDisplayOptions();
// Add permission-based access control.
$display_options['access']['type'] = 'perm';
......
......@@ -59,10 +59,10 @@ class Users extends WizardPluginBase {
);
/**
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::default_display_options().
* Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::defaultDisplayOptions().
*/
protected function default_display_options() {
$display_options = parent::default_display_options();
protected function defaultDisplayOptions() {
$display_options = parent::defaultDisplayOptions();
// Add permission-based access control.
$display_options['access']['type'] = 'perm';
......
......@@ -651,7 +651,7 @@ protected function instantiate_view($form, &$form_state) {
*/
protected function build_display_options($form, $form_state) {
// Display: Master
$display_options['default'] = $this->default_display_options();
$display_options['default'] = $this->defaultDisplayOptions();
$display_options['default'] += array(
'filters' => array(),
'sorts' => array(),
......@@ -743,7 +743,7 @@ protected function addDisplays(View $view, $display_options, $form, $form_state)
* @return array
* Returns an array of display options.
*/
protected function default_display_options() {
protected function defaultDisplayOptions() {
$display_options = array();
$display_options['access']['type'] = 'none';
$display_options['cache']['type'] = 'none';
......
Markdown is supported
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