public function WebformInterface::hasState in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformInterface.php \Drupal\webform\WebformInterface::hasState()
Determine if the stored value for a given key exists in the webform's state.
Parameters
string $key: The key of the data to retrieve.
Return value
bool TRUE if the stored value for a given key exists.
1 method overrides WebformInterface::hasState()
- Webform::hasState in src/
Entity/ Webform.php - Determine if the stored value for a given key exists in the webform's state.
File
- src/
WebformInterface.php, line 1191
Class
- WebformInterface
- Provides an interface defining a webform entity.
Namespace
Drupal\webformCode
public function hasState($key);