Skip to content

Instantly share code, notes, and snippets.

@cmcintosh
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmcintosh/8dc5a87aca4a60f167b8 to your computer and use it in GitHub Desktop.
Save cmcintosh/8dc5a87aca4a60f167b8 to your computer and use it in GitHub Desktop.
<?php
/**
* @file
* Contains \Drupal\Core\Field\Plugin\Field\FieldWidget\NumberWidget.
*/
namespace Drupal\Core\Field\Plugin\Field\FieldWidget;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\WidgetBase;
use Drupal\Core\Form\FormStateInterface;
use Symfony\Component\Validator\ConstraintViolationInterface;
/**
* Plugin implementation of the 'comment_timer' widget.
*
* @FieldWidget(
* id = "comment_timer",
* label = @Translation("Comment Timer"),
* field_types = {
* "integer"
* }
* )
*/
class CommentTimerWidget extends WidgetBase { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment