protected function Node::defineOptions in Drupal 8
Same name and namespace in other branches
- 9 core/modules/node/src/Plugin/views/field/Node.php \Drupal\node\Plugin\views\field\Node::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- '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().
),
Return value
array Returns the options of this handler/plugin.
Overrides FieldPluginBase::defineOptions
1 call to Node::defineOptions()
- HistoryUserTimestamp::defineOptions in core/
modules/ history/ src/ Plugin/ views/ field/ HistoryUserTimestamp.php - Information about options for all kinds of purposes will be held here.
1 method overrides Node::defineOptions()
- HistoryUserTimestamp::defineOptions in core/
modules/ history/ src/ Plugin/ views/ field/ HistoryUserTimestamp.php - Information about options for all kinds of purposes will be held here.
File
- core/
modules/ node/ src/ Plugin/ views/ field/ Node.php, line 38
Class
- Node
- Field handler to provide simple renderer that allows linking to a node. Definition terms:
Namespace
Drupal\node\Plugin\views\fieldCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['link_to_node'] = [
'default' => isset($this->definition['link_to_node default']) ? $this->definition['link_to_node default'] : FALSE,
];
return $options;
}