protected function AreaPluginBase::defineOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/area/AreaPluginBase.php \Drupal\views\Plugin\views\area\AreaPluginBase::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 HandlerBase::defineOptions
7 calls to AreaPluginBase::defineOptions()
- HTTPStatusCode::defineOptions in core/
modules/ views/ src/ Plugin/ views/ area/ HTTPStatusCode.php - Information about options for all kinds of purposes will be held here.
- Messages::defineOptions in core/
modules/ views/ src/ Plugin/ views/ area/ Messages.php - Information about options for all kinds of purposes will be held here.
- Result::defineOptions in core/
modules/ views/ src/ Plugin/ views/ area/ Result.php - Information about options for all kinds of purposes will be held here.
- TestExample::defineOptions in core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ area/ TestExample.php - Information about options for all kinds of purposes will be held here.
- Title::defineOptions in core/
modules/ views/ src/ Plugin/ views/ area/ Title.php - Information about options for all kinds of purposes will be held here.
7 methods override AreaPluginBase::defineOptions()
- HTTPStatusCode::defineOptions in core/
modules/ views/ src/ Plugin/ views/ area/ HTTPStatusCode.php - Information about options for all kinds of purposes will be held here.
- Messages::defineOptions in core/
modules/ views/ src/ Plugin/ views/ area/ Messages.php - Information about options for all kinds of purposes will be held here.
- Result::defineOptions in core/
modules/ views/ src/ Plugin/ views/ area/ Result.php - Information about options for all kinds of purposes will be held here.
- TestExample::defineOptions in core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ area/ TestExample.php - Information about options for all kinds of purposes will be held here.
- Title::defineOptions in core/
modules/ views/ src/ Plugin/ views/ area/ Title.php - Information about options for all kinds of purposes will be held here.
File
- core/
modules/ views/ src/ Plugin/ views/ area/ AreaPluginBase.php, line 64 - Contains \Drupal\views\Plugin\views\area\AreaPluginBase.
Class
- AreaPluginBase
- Base class for area handler plugins.
Namespace
Drupal\views\Plugin\views\areaCode
protected function defineOptions() {
$options = parent::defineOptions();
$this->definition['field'] = !empty($this->definition['field']) ? $this->definition['field'] : '';
$label = !empty($this->definition['label']) ? $this->definition['label'] : $this->definition['field'];
$options['admin_label']['default'] = $label;
$options['empty'] = array(
'default' => FALSE,
);
return $options;
}