class CropEntityProvider in Crop API 8
Same name and namespace in other branches
- 8.2 src/Annotation/CropEntityProvider.php \Drupal\crop\Annotation\CropEntityProvider
Defines the annotation object for crop integration with storage entities.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\crop\Annotation\CropEntityProvider
Expanded class hierarchy of CropEntityProvider
See also
hook_crop_entity_provider_info_alter()
2 classes are annotated with CropEntityProvider
File
- src/
Annotation/ CropEntityProvider.php, line 14
Namespace
Drupal\crop\AnnotationView source
class CropEntityProvider extends Plugin {
/**
* Entity type plugin provides.
*
* @var string
*/
public $entity_type;
/**
* The human-readable name of the crop entity provider.
*
* Will usually match entity type name.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
/**
* A brief description of the crop entity provider.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $description = '';
/**
* {@inheritdoc}
*/
public function getId() {
return $this->definition['entity_type'];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CropEntityProvider:: |
public | property | A brief description of the crop entity provider. | |
CropEntityProvider:: |
public | property | Entity type plugin provides. | |
CropEntityProvider:: |
public | property | The human-readable name of the crop entity provider. | |
CropEntityProvider:: |
public | function |
Gets the unique ID for this annotated class. Overrides Plugin:: |
|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |