public static function SalesforceMappingFieldPluginBase::isAllowed in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginBase::isAllowed()
- 5.0.x modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginBase::isAllowed()
Determine whether this plugin is allowed for a given mapping.
Given a SF Mapping, return TRUE or FALSE whether this field plugin can be added via UI. Not used for validation or any other constraints. This works like a soft dependency.
Parameters
\Drupal\salesforce_mapping\Entity\SalesforceMappingInterface $mapping: The mapping.
Return value
bool TRUE if the field plugin can be added to this mapping.
Overrides SalesforceMappingFieldPluginInterface::isAllowed
See also
\Drupal\salesforce_mapping\Plugin\SalesforceMappingField\Broken
4 methods override SalesforceMappingFieldPluginBase::isAllowed()
- Broken::isAllowed in modules/
salesforce_mapping/ src/ Plugin/ SalesforceMappingField/ Broken.php - Determine whether this plugin is allowed for a given mapping.
- PropertiesExtended::isAllowed in modules/
salesforce_mapping/ src/ Plugin/ SalesforceMappingField/ PropertiesExtended.php - Determine whether this plugin is allowed for a given mapping.
- RecordType::isAllowed in modules/
salesforce_mapping/ src/ Plugin/ SalesforceMappingField/ RecordType.php - Determine whether this plugin is allowed for a given mapping.
- WebformElements::isAllowed in modules/
salesforce_webform/ src/ Plugin/ SalesforceMappingField/ WebformElements.php - Determine whether this plugin is allowed for a given mapping.
File
- modules/
salesforce_mapping/ src/ SalesforceMappingFieldPluginBase.php, line 163
Class
- SalesforceMappingFieldPluginBase
- Defines a base Salesforce Mapping Field Plugin implementation.
Namespace
Drupal\salesforce_mappingCode
public static function isAllowed(SalesforceMappingInterface $mapping) {
return TRUE;
}