You are here

protected function ViewsAccessCallback::defineOptions in Views Access Callback 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

src/Plugin/views/access/ViewsAccessCallback.php, line 92

Class

ViewsAccessCallback
Access plugin that provides permission-based access control.

Namespace

Drupal\views_access_callback\Plugin\views\access

Code

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