class Transactor in Transaction 8
Defines a Transactor annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\transaction\Annotation\Transactor
Expanded class hierarchy of Transactor
See also
\Drupal\transaction\TransactorPluginManager
1 file declares its use of Transactor
3 string references to 'Transactor'
- transaction.schema.yml in config/
schema/ transaction.schema.yml - config/schema/transaction.schema.yml
- TransactionTypeCreationForm::buildForm in src/
Form/ TransactionTypeCreationForm.php - Form constructor.
- TransactionTypeListBuilder::buildHeader in src/
TransactionTypeListBuilder.php - Builds the header row for the entity listing.
2 classes are annotated with Transactor
- BalanceTransactor in src/
Plugin/ Transaction/ BalanceTransactor.php - Transactor for accounting type transactions.
- GenericTransactor in src/
Plugin/ Transaction/ GenericTransactor.php - Provides a generic transactor.
File
- src/
Annotation/ Transactor.php, line 15
Namespace
Drupal\transaction\AnnotationView source
class Transactor extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The title of the plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $title;
/**
* The description of the plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $description;
/**
* A list of entity types this transactor supports.
*
* @var string[]|optional
*/
public $supported_entity_types = [];
/**
* Fields in transaction entity.
*
* @var array|optional
*/
public $transaction_fields = [];
/**
* Fields in the target entity.
*
* @var array|optional
*/
public $target_fields = [];
/**
* The default settings for the transactor.
*
* @var array|optional
*/
public $settings = [];
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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 |
Transactor:: |
public | property | The description of the plugin. | |
Transactor:: |
public | property | The plugin ID. | |
Transactor:: |
public | property | The default settings for the transactor. | |
Transactor:: |
public | property | A list of entity types this transactor supports. | |
Transactor:: |
public | property | Fields in the target entity. | |
Transactor:: |
public | property | The title of the plugin. | |
Transactor:: |
public | property | Fields in transaction entity. |