You are here

AcceptanceMethod.php in Entity Legal 8

File

src/Annotation/AcceptanceMethod.php
View source
<?php

/**
 * @file
 * Contains \Drupal\entity_legal\Annotation\AcceptanceMethod.
 */
namespace Drupal\entity_legal\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines a AcceptanceMethod annotation object.
 *
 * @Annotation
 *
 * @see \Drupal\entity_legal\AcceptanceMethod\AcceptanceMethodInterface
 */
class AcceptanceMethod extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The human-readable name of the method.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;

  /**
   * Available for new signups.
   *
   * @var bool
   */
  public $new_users;

  /**
   * Available for existing users.
   *
   * @var bool
   */
  public $existing_users;

}

Classes

Namesort descending Description
AcceptanceMethod Defines a AcceptanceMethod annotation object.