class vms_plugin_argument_default_mlid in Views Menu Support 8
Default argument plugin to provide current mlid item.
Hierarchy
- class \Drupal\vms\Plugins\views\views_mlid\vms_plugin_argument_default_mlid extends \Drupal\vms\Plugins\views\views_mlid\views_plugin_argument_default
Expanded class hierarchy of vms_plugin_argument_default_mlid
1 string reference to 'vms_plugin_argument_default_mlid'
- vms_views_plugins in ./
vms.views.inc - Implements hook_views_plugins().
File
- lib/
Drupal/ vms/ Plugins/ views/ vms_plugin_argument_default_mlid.inc, line 15 - Contains argument default plugin for getting current MLID items.
Namespace
Drupal\vms\Plugins\views\views_mlidView source
class vms_plugin_argument_default_mlid extends views_plugin_argument_default {
function option_definition() {
$options = parent::option_definition();
$options['trail'] = array(
'default' => 'current',
);
return $options;
}
function options_form(&$form, &$form_state) {
$form['trail'] = array(
'#type' => 'select',
'#title' => t('Menu item(s) to return'),
'#default_value' => $this->options['trail'],
'#options' => vms_mlid_query_types(),
);
}
function get_argument() {
return $this->options['trail'];
}
}