EncryptedFieldTrait::getEncryptionKey
Returns a custom key if one is explicitly set for this field. If a key is not set using setEncryptionKey(), returns null, which will trigger the AtRestCryptoService to use the default global key set in the ENCRYPT_AT_REST_KEY constant.
Signature
public function getEncryptionKey()
Returns
- Key|null