You are here

protected function EntityOperation::defineOptions in Views Entity Operation Access 8

Same name and namespace in other branches
  1. 2.x src/Plugin/views/access/EntityOperation.php \Drupal\veoa\Plugin\views\access\EntityOperation::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 PluginBase::defineOptions

File

src/Plugin/views/access/EntityOperation.php, line 119

Class

EntityOperation
Access plugin checking if the current user can operate on an entity.

Namespace

Drupal\veoa\Plugin\views\access

Code

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