private function KeyEntityFormEnhancer::keyIsWritable in Apigee Edge 8
Checks whether we know how to write to a key.
Parameters
\Drupal\key\KeyInterface $key: The key to test.
Return value
bool Whether the key is writable.
2 calls to KeyEntityFormEnhancer::keyIsWritable()
- KeyEntityFormEnhancer::alterForm in src/
KeyEntityFormEnhancer.php - Alters entity forms that defines an Apigee Edge authentication key.
- KeyEntityFormEnhancer::validateForm in src/
KeyEntityFormEnhancer.php - Additional validation handler for Apigee Edge authentication key forms.
File
- src/
KeyEntityFormEnhancer.php, line 448
Class
- KeyEntityFormEnhancer
- Enhances Apigee Edge related Key entity add/edit forms.
Namespace
Drupal\apigee_edgeCode
private function keyIsWritable(KeyInterface $key) : bool {
return $key
->getKeyProvider() instanceof KeyProviderSettableValueInterface;
}