Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PluginBase.php

function PluginBase::defineOptions

Information about options for all kinds of purposes will be held here.


'option_name' => [
 - '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 [].
 ],

Return value

array Returns the options of this handler/plugin.

25 calls to PluginBase::defineOptions()
ExposedFormPluginBase::defineOptions in core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
Information about options for all kinds of purposes will be held here.
ExposedFormPluginBase::defineOptions in core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
Information about options for all kinds of purposes will be held here.
HandlerBase::defineOptions in core/modules/views/src/Plugin/views/HandlerBase.php
Information about options for all kinds of purposes will be held here.
HandlerBase::defineOptions in core/modules/views/src/Plugin/views/HandlerBase.php
Information about options for all kinds of purposes will be held here.
None::defineOptions in core/modules/views/src/Plugin/views/pager/None.php
Information about options for all kinds of purposes will be held here.

... See full list

14 methods override PluginBase::defineOptions()
ArgumentDefaultPluginBase::defineOptions in core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php
Retrieve the options when this is a new access control plugin.
ArgumentValidatorPluginBase::defineOptions in core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php
Retrieves the options when this is a new access control plugin.
DisplayPluginBase::defineOptions in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Information about options for all kinds of purposes will be held here.
ExposedFormPluginBase::defineOptions in core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
Information about options for all kinds of purposes will be held here.
HandlerBase::defineOptions in core/modules/views/src/Plugin/views/HandlerBase.php
Information about options for all kinds of purposes will be held here.

... See full list

File

core/modules/views/src/Plugin/views/PluginBase.php, line 163

Class

PluginBase
Base class for any views plugin types.

Namespace

Drupal\views\Plugin\views

Code

protected function defineOptions() {
    return [];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal