3 namespace Drupal\crop\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines the annotation object for crop integration with storage entities.
10 * @see hook_crop_entity_provider_info_alter()
14 class CropEntityProvider extends Plugin {
17 * Entity type plugin provides.
24 * The human-readable name of the crop entity provider.
26 * Will usually match entity type name.
28 * @var \Drupal\Core\Annotation\Translation
30 * @ingroup plugin_translatable
35 * A brief description of the crop entity provider.
37 * @var \Drupal\Core\Annotation\Translation
39 * @ingroup plugin_translatable
41 public $description = '';
46 public function getId() {
47 return $this->definition['entity_type'];