Issue #2002444 by fmizzell: Rename Views method default_argument_form() to defaultArgumentForm().
parent
c4e52bb6b4
commit
7ff44499f4
|
@ -449,7 +449,7 @@ abstract class ArgumentPluginBase extends HandlerBase {
|
|||
'default' => array(
|
||||
'title' => t('Provide default value'),
|
||||
'method' => 'default_default',
|
||||
'form method' => 'default_argument_form',
|
||||
'form method' => 'defaultArgumentForm',
|
||||
'has default argument' => TRUE,
|
||||
'default only' => TRUE, // this can only be used for missing argument, not validation failure
|
||||
'breadcrumb' => TRUE, // generate a breadcrumb to here
|
||||
|
@ -496,7 +496,7 @@ abstract class ArgumentPluginBase extends HandlerBase {
|
|||
* Provide a form for selecting the default argument when the
|
||||
* default action is set to provide default argument.
|
||||
*/
|
||||
function default_argument_form(&$form, &$form_state) {
|
||||
public function defaultArgumentForm(&$form, &$form_state) {
|
||||
$plugins = Views::pluginManager('argument_default')->getDefinitions();
|
||||
$options = array();
|
||||
|
||||
|
|
|
@ -47,8 +47,8 @@ class Date extends Formula {
|
|||
/**
|
||||
* Add an option to set the default value to the current date.
|
||||
*/
|
||||
function default_argument_form(&$form, &$form_state) {
|
||||
parent::default_argument_form($form, $form_state);
|
||||
public function defaultArgumentForm(&$form, &$form_state) {
|
||||
parent::defaultArgumentForm($form, $form_state);
|
||||
$form['default_argument_type']['#options'] += array('date' => t('Current date'));
|
||||
$form['default_argument_type']['#options'] += array('node_created' => t("Current node's creation time"));
|
||||
$form['default_argument_type']['#options'] += array('node_changed' => t("Current node's update time")); }
|
||||
|
|
Loading…
Reference in New Issue