protected function EntityBrowserWidgetContext::defineOptions in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/argument_default/EntityBrowserWidgetContext.php \Drupal\entity_browser\Plugin\views\argument_default\EntityBrowserWidgetContext::defineOptions()
Retrieve the options when this is a new access control plugin
Overrides ArgumentDefaultPluginBase::defineOptions
File
- src/
Plugin/ views/ argument_default/ EntityBrowserWidgetContext.php, line 50
Class
- EntityBrowserWidgetContext
- The entity browser widget context argument default handler.
Namespace
Drupal\entity_browser\Plugin\views\argument_defaultCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['context_key'] = [
'default' => 'target_bundles',
];
$options['fallback'] = [
'default' => 'all',
];
$options['multiple'] = [
'default' => 'or',
];
return $options;
}