You are here

OpignoModuleFinished.php in Opigno module 3.x

Same filename and directory in other branches
  1. 8 src/Plugin/views/field/OpignoModuleFinished.php

File

src/Plugin/views/field/OpignoModuleFinished.php
View source
<?php

namespace Drupal\opigno_module\Plugin\views\field;

use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Plugin\views\field\Date;

/**
 * A handler to provide a field that is completely custom by the administrator.
 *
 * @ingroup views_field_handlers
 *
 * @ViewsField("opigno_module_finished")
 */
class OpignoModuleFinished extends Date {

  /**
   * {@inheritdoc}
   */
  public function usesGroupBy() {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  protected function defineOptions() {
    $options = parent::defineOptions();
    $options['hide_alter_empty'] = [
      'default' => FALSE,
    ];
    return $options;
  }

  /**
   * {@inheritdoc}
   */
  public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    parent::buildOptionsForm($form, $form_state);
  }

}

Classes

Namesort descending Description
OpignoModuleFinished A handler to provide a field that is completely custom by the administrator.