class SalesforceQueryEvent in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/Event/SalesforceQueryEvent.php \Drupal\salesforce_mapping\Event\SalesforceQueryEvent
- 5.0.x modules/salesforce_mapping/src/Event/SalesforceQueryEvent.php \Drupal\salesforce_mapping\Event\SalesforceQueryEvent
Pull query event.
Hierarchy
- class \Drupal\salesforce\Event\SalesforceBaseEvent extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\salesforce_mapping\Event\SalesforceQueryEvent
Expanded class hierarchy of SalesforceQueryEvent
4 files declare their use of SalesforceQueryEvent
- QueueHandler.php in modules/
salesforce_pull/ src/ QueueHandler.php - SalesforceExampleSubscriber.php in modules/
salesforce_example/ src/ EventSubscriber/ SalesforceExampleSubscriber.php - SalesforcePullCommands.php in modules/
salesforce_pull/ src/ Commands/ SalesforcePullCommands.php - salesforce_pull.drush.inc in modules/
salesforce_pull/ salesforce_pull.drush.inc - Salesforce Pull drush 8 commands.
File
- modules/
salesforce_mapping/ src/ Event/ SalesforceQueryEvent.php, line 12
Namespace
Drupal\salesforce_mapping\EventView source
class SalesforceQueryEvent extends SalesforceBaseEvent {
/**
* The query to be issued.
*
* @var \Drupal\salesforce\SelectQueryInterface
*/
protected $query;
/**
* The mapping.
*
* @var \Drupal\salesforce_mapping\Entity\SalesforceMappingInterface
*/
protected $mapping;
/**
* SalesforceQueryEvent constructor.
*
* @param \Drupal\salesforce_mapping\Entity\SalesforceMappingInterface $mapping
* The mapping.
* @param \Drupal\salesforce\SelectQueryInterface $query
* The query.
*/
public function __construct(SalesforceMappingInterface $mapping, SelectQueryInterface $query) {
$this->mapping = $mapping;
$this->query = $query;
}
/**
* Getter.
*
* @return \Drupal\salesforce\SelectQueryInterface
* The query.
*/
public function getQuery() {
return $this->query;
}
/**
* Getter.
*
* @return \Drupal\salesforce_mapping\Entity\SalesforceMappingInterface
* The mapping.
*/
public function getMapping() {
return $this->mapping;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SalesforceQueryEvent:: |
protected | property | The mapping. | |
SalesforceQueryEvent:: |
protected | property | The query to be issued. | |
SalesforceQueryEvent:: |
public | function | Getter. | |
SalesforceQueryEvent:: |
public | function | Getter. | |
SalesforceQueryEvent:: |
public | function | SalesforceQueryEvent constructor. |