You are here

protected function FancyFileDeleteOrphanFileFilter::valueForm in Fancy File Delete 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/views/filter/FancyFileDeleteOrphanFileFilter.php \Drupal\fancy_file_delete\Plugin\views\filter\FancyFileDeleteOrphanFileFilter::valueForm()

Options form subform for setting options.

This should be overridden by all child classes and it must define $form['value']

Overrides FilterPluginBase::valueForm

See also

buildOptionsForm()

File

src/Plugin/views/filter/FancyFileDeleteOrphanFileFilter.php, line 18

Class

FancyFileDeleteOrphanFileFilter
Fancy File Delete Orphan Files Views Settings.

Namespace

Drupal\fancy_file_delete\Plugin\views\filter

Code

protected function valueForm(&$form, FormStateInterface $form_state) {

  // Hide default behavior just in case.
  $form['expose_button']['#access'] = FALSE;
  $form['more']['#access'] = FALSE;
  $form['orphan_text'] = array(
    '#type' => 'item',
    '#markup' => $this
      ->t('This is just a custom query filter no need for any configuration.'),
  );
}