class ActivityTypePlugin in CRM Core 8
Same name and namespace in other branches
- 8.3 modules/crm_core_activity/src/Annotation/ActivityTypePlugin.php \Drupal\crm_core_activity\Annotation\ActivityTypePlugin
- 8.2 modules/crm_core_activity/src/Annotation/ActivityTypePlugin.php \Drupal\crm_core_activity\Annotation\ActivityTypePlugin
Defines an activity type plugin annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\crm_core_activity\Annotation\ActivityTypePlugin
Expanded class hierarchy of ActivityTypePlugin
2 classes are annotated with ActivityTypePlugin
- ActivityTypeWithConfig in modules/
crm_core_activity/ tests/ modules/ crm_core_activity_plugin_test/ src/ Plugin/ crm_core_activity/ ActivityType/ ActivityTypeWithConfig.php - Provides generic plugin for activity type.
- Generic in modules/
crm_core_activity/ src/ Plugin/ crm_core_activity/ ActivityType/ Generic.php - Provides generic plugin for activity type.
File
- modules/
crm_core_activity/ src/ Annotation/ ActivityTypePlugin.php, line 12
Namespace
Drupal\crm_core_activity\AnnotationView source
class ActivityTypePlugin extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the type.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
/**
* A brief description of the plugin.
*
* This will be shown when adding or configuring this display.
*
* @var \Drupal\Core\Annotation\Translationoptional
*
* @ingroup plugin_translatable
*/
public $description = '';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ActivityTypePlugin:: |
public | property | A brief description of the plugin. | |
ActivityTypePlugin:: |
public | property | The plugin ID. | |
ActivityTypePlugin:: |
public | property | The human-readable name of the type. | |
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 unique ID for this 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 |