You are here

protected function AddContentByBundle::defineOptions in Add Content by Bundle Views Area Plugin 1.x

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

File

src/Plugin/views/area/AddContentByBundle.php, line 64

Class

AddContentByBundle
Defines an area plugin to display a bundle-specific node/add link.

Namespace

Drupal\add_content_by_bundle\Plugin\views\area

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['bundle'] = [
    'default' => NULL,
  ];
  $options['label'] = [
    'default' => NULL,
  ];
  $options['class'] = [
    'default' => NULL,
  ];
  $options['target'] = [
    'default' => '',
  ];
  $options['width'] = [
    'default' => '600',
  ];
  $options['form_mode'] = [
    'default' => NULL,
  ];
  $options['params'] = [
    'default' => '',
  ];
  return $options;
}