abstract class BusinessRulesItem in Business Rules 8
Same name and namespace in other branches
- 2.x src/Annotation/BusinessRulesItem.php \Drupal\business_rules\Annotation\BusinessRulesItem
Defines a Business rules item base annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\business_rules\Annotation\BusinessRulesItem
Expanded class hierarchy of BusinessRulesItem
See also
File
- src/
Annotation/ BusinessRulesItem.php, line 14
Namespace
Drupal\business_rules\AnnotationView source
abstract class BusinessRulesItem extends Plugin {
/**
* A human readable description of the item.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $description;
/**
* The group of the item to be organized in the list box.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $group;
/**
* If the item has target bundle.
*
* @var bool
*/
public $hasTargetBundle = FALSE;
/**
* If the item need a target entity.
*
* @var bool
*/
public $hasTargetEntity = FALSE;
/**
* If the condition has target field.
*
* If true, you must need to add the field property on item schema file.
*
* @var bool
*/
public $hasTargetField = FALSE;
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* If the item depends on context.
*
* @var bool
*/
public $isContextDependent = FALSE;
/**
* The label of the plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
/**
* The reactsOn ids applicable for the item.
*
* Leave empty if it's applicable for all reactsOn events.
*
* @var array
*/
public $reactsOnIds = [];
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BusinessRulesItem:: |
public | property | A human readable description of the item. | |
BusinessRulesItem:: |
public | property | The group of the item to be organized in the list box. | |
BusinessRulesItem:: |
public | property | If the item has target bundle. | |
BusinessRulesItem:: |
public | property | If the item need a target entity. | |
BusinessRulesItem:: |
public | property | If the condition has target field. | |
BusinessRulesItem:: |
public | property | The plugin ID. | |
BusinessRulesItem:: |
public | property | If the item depends on context. | |
BusinessRulesItem:: |
public | property | The label of the plugin. | |
BusinessRulesItem:: |
public | property | The reactsOn ids applicable for the item. | |
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 |