public static function SalesforceMappingFieldPluginInterface::isAllowed in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/SalesforceMappingFieldPluginInterface.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginInterface::isAllowed()
- 5.0.x modules/salesforce_mapping/src/SalesforceMappingFieldPluginInterface.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginInterface::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.
See also
\Drupal\salesforce_mapping\Plugin\SalesforceMappingField\Broken
1 method overrides SalesforceMappingFieldPluginInterface::isAllowed()
- SalesforceMappingFieldPluginBase::isAllowed in modules/
salesforce_mapping/ src/ SalesforceMappingFieldPluginBase.php - Determine whether this plugin is allowed for a given mapping.
File
- modules/
salesforce_mapping/ src/ SalesforceMappingFieldPluginInterface.php, line 117
Class
- SalesforceMappingFieldPluginInterface
- Defines an interface for salesforce mapping plugins.
Namespace
Drupal\salesforce_mappingCode
public static function isAllowed(SalesforceMappingInterface $mapping);