public function Webform::hasRequired in Webform 8.5
Same name and namespace in other branches
- 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::hasRequired()
Determine if the webform has required elements.
Return value
bool TRUE if the webform has required elements.
Overrides WebformInterface::hasRequired
File
- src/
Entity/ Webform.php, line 836
Class
- Webform
- Defines the webform entity.
Namespace
Drupal\webform\EntityCode
public function hasRequired() {
$this
->initElements();
return $this->hasRequired;
}