You are here

protected function GridStackViews::getDefinedFormScopes in GridStack 8.2

Returns the defined scopes for the current form.

1 call to GridStackViews::getDefinedFormScopes()
GridStackViews::buildOptionsForm in src/Plugin/views/style/GridStackViews.php
Overrides parent::buildOptionsForm().

File

src/Plugin/views/style/GridStackViews.php, line 62

Class

GridStackViews
GridStack style plugin.

Namespace

Drupal\gridstack\Plugin\views\style

Code

protected function getDefinedFormScopes(array $extra_fields = []) {

  // Pass the common field options relevant to this style.
  $fields = GridStackDefault::viewFieldOptions();
  $fields = array_merge($fields, $extra_fields);

  // Fetches the returned field definitions to be used to define form scopes.
  $definition = $this
    ->getDefinedFieldOptions($fields);
  $definition['opening_class'] = 'form--views';
  $definition['_views'] = TRUE;
  return $definition;
}