You are here

protected function Domain::defineOptions in Domain Access 8

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 PluginBase::defineOptions

File

domain/src/Plugin/views/access/Domain.php, line 117

Class

Domain
Access plugin that provides domain-based access control.

Namespace

Drupal\domain\Plugin\views\access

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['domain'] = [
    'default' => [],
  ];
  return $options;
}