function ArgumentPluginBase::default_actions in Views (for Drupal 7) 8.3
Provide a list of default behaviors for this argument if the argument is not present.
Override this method to provide additional (or fewer) default behaviors.
10 calls to ArgumentPluginBase::default_actions()
- ArgumentPluginBase::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ argument/ ArgumentPluginBase.php - Build the options form.
- ArgumentPluginBase::default_action in lib/
Drupal/ views/ Plugin/ views/ argument/ ArgumentPluginBase.php - Handle the default action, which means our argument wasn't present.
- ArgumentPluginBase::has_default_argument in lib/
Drupal/ views/ Plugin/ views/ argument/ ArgumentPluginBase.php - Determine if the argument is set to provide a default argument.
- ArgumentPluginBase::needsStylePlugin in lib/
Drupal/ views/ Plugin/ views/ argument/ ArgumentPluginBase.php - Determine if the argument needs a style plugin.
- ArgumentPluginBase::uses_breadcrumb in lib/
Drupal/ views/ Plugin/ views/ argument/ ArgumentPluginBase.php - Determine if the argument can generate a breadcrumb
3 methods override ArgumentPluginBase::default_actions()
- IndexTidDepth::default_actions in lib/
Views/ taxonomy/ Plugin/ views/ argument/ IndexTidDepth.php - Override default_actions() to remove summary actions.
- Null::default_actions in lib/
Drupal/ views/ Plugin/ views/ argument/ Null.php - Override default_actions() to remove actions that don't make sense for a null argument.
- UserUid::default_actions in lib/
Views/ comment/ Plugin/ views/ argument/ UserUid.php - Provide a list of default behaviors for this argument if the argument is not present.
File
- lib/
Drupal/ views/ Plugin/ views/ argument/ ArgumentPluginBase.php, line 441 - Definition of Drupal\views\Plugin\views\argument\ArgumentPluginBase.
Class
- ArgumentPluginBase
- Base class for arguments.
Namespace
Drupal\views\Plugin\views\argumentCode
function default_actions($which = NULL) {
$defaults = array(
'ignore' => array(
'title' => t('Display all results for the specified field'),
'method' => 'default_ignore',
'breadcrumb' => TRUE,
),
'default' => array(
'title' => t('Provide default value'),
'method' => 'default_default',
'form method' => 'default_argument_form',
'has default argument' => TRUE,
'default only' => TRUE,
// this can only be used for missing argument, not validation failure
'breadcrumb' => TRUE,
),
'not found' => array(
'title' => t('Hide view'),
'method' => 'default_not_found',
'hard fail' => TRUE,
),
'summary' => array(
'title' => t('Display a summary'),
'method' => 'default_summary',
'form method' => 'default_summary_form',
'style plugin' => TRUE,
'breadcrumb' => TRUE,
),
'empty' => array(
'title' => t('Display contents of "No results found"'),
'method' => 'default_empty',
'breadcrumb' => TRUE,
),
'access denied' => array(
'title' => t('Display "Access Denied"'),
'method' => 'default_access_denied',
'breadcrumb' => FALSE,
),
);
if ($this->view->display_handler
->hasPath()) {
$defaults['not found']['title'] = t('Show "Page not found"');
}
if ($which) {
if (!empty($defaults[$which])) {
return $defaults[$which];
}
}
else {
return $defaults;
}
}