protected function ArgumentPluginBase::defineOptions in Views (for Drupal 7) 8.3
Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
- 'default' => default value,
- 'translatable' => (optional) TRUE/FALSE (wrap in t() on export if true),
- 'contains' => (optional) array of items this contains, with its own defaults, etc. If contains is set, the default will be ignored and assumed to be array().
- 'bool' => (optional) TRUE/FALSE Is the value a boolean value. This will change the export format to TRUE/FALSE instead of 1/0.
),
Return value
array Returns the options of this handler/plugin.
Overrides HandlerBase::defineOptions
5 calls to ArgumentPluginBase::defineOptions()
- IndexTidDepth::defineOptions in lib/
Views/ taxonomy/ Plugin/ views/ argument/ IndexTidDepth.php - Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
- ManyToOne::defineOptions in lib/
Drupal/ views/ Plugin/ views/ argument/ ManyToOne.php - Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
- Null::defineOptions in lib/
Drupal/ views/ Plugin/ views/ argument/ Null.php - Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
- Numeric::defineOptions in lib/
Drupal/ views/ Plugin/ views/ argument/ Numeric.php - Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
- String::defineOptions in lib/
Drupal/ views/ Plugin/ views/ argument/ String.php - Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
6 methods override ArgumentPluginBase::defineOptions()
- Broken::defineOptions in lib/
Drupal/ views/ Plugin/ views/ argument/ Broken.php - Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
- IndexTidDepth::defineOptions in lib/
Views/ taxonomy/ Plugin/ views/ argument/ IndexTidDepth.php - Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
- ManyToOne::defineOptions in lib/
Drupal/ views/ Plugin/ views/ argument/ ManyToOne.php - Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
- Null::defineOptions in lib/
Drupal/ views/ Plugin/ views/ argument/ Null.php - Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
- Numeric::defineOptions in lib/
Drupal/ views/ Plugin/ views/ argument/ Numeric.php - Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
File
- lib/
Drupal/ views/ Plugin/ views/ argument/ ArgumentPluginBase.php, line 123 - Definition of Drupal\views\Plugin\views\argument\ArgumentPluginBase.
Class
- ArgumentPluginBase
- Base class for arguments.
Namespace
Drupal\views\Plugin\views\argumentCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['default_action'] = array(
'default' => 'ignore',
);
$options['exception'] = array(
'contains' => array(
'value' => array(
'default' => 'all',
),
'title_enable' => array(
'default' => FALSE,
'bool' => TRUE,
),
'title' => array(
'default' => 'All',
'translatable' => TRUE,
),
),
);
$options['title_enable'] = array(
'default' => FALSE,
'bool' => TRUE,
);
$options['title'] = array(
'default' => '',
'translatable' => TRUE,
);
$options['breadcrumb_enable'] = array(
'default' => FALSE,
'bool' => TRUE,
);
$options['breadcrumb'] = array(
'default' => '',
'translatable' => TRUE,
);
$options['default_argument_type'] = array(
'default' => 'fixed',
);
$options['default_argument_options'] = array(
'default' => array(),
);
$options['default_argument_skip_url'] = array(
'default' => FALSE,
'bool' => TRUE,
);
$options['summary_options'] = array(
'default' => array(),
);
$options['summary'] = array(
'contains' => array(
'sort_order' => array(
'default' => 'asc',
),
'number_of_records' => array(
'default' => 0,
),
'format' => array(
'default' => 'default_summary',
),
),
);
$options['specify_validation'] = array(
'default' => FALSE,
'bool' => TRUE,
);
$options['validate'] = array(
'contains' => array(
'type' => array(
'default' => 'none',
),
'fail' => array(
'default' => 'not found',
),
),
);
$options['validate_options'] = array(
'default' => array(),
);
return $options;
}