You are here

EntityUsageTrack.php in Entity Usage 8.3

File

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

namespace Drupal\entity_usage\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines an entity_usage track annotation object.
 *
 * @see hook_entity_usage_track_info_alter()
 *
 * @Annotation
 */
class EntityUsageTrack extends Plugin {

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

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

  /**
   * A brief description of the tracking method.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $description = '';

  /**
   * The field types that this plugin is able to track.
   *
   * @var string[]
   */
  public $field_types = [];

}

Classes

Namesort descending Description
EntityUsageTrack Defines an entity_usage track annotation object.