public function WebformRequestInterface::isValidSourceEntity in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformRequestInterface.php \Drupal\webform\WebformRequestInterface::isValidSourceEntity()
Check if a source entity is attached to a webform.
Parameters
\Drupal\Core\Entity\EntityInterface $webform_entity: A webform or webform submission.
\Drupal\Core\Entity\EntityInterface|null $source_entity: A webform submission's source entity.
Return value
bool TRUE if a webform is attached to a webform submission source entity.
1 method overrides WebformRequestInterface::isValidSourceEntity()
- WebformRequest::isValidSourceEntity in src/
WebformRequest.php - Check if a source entity is attached to a webform.
File
- src/
WebformRequestInterface.php, line 181
Class
- WebformRequestInterface
- Provides an interface defining a webform request handler.
Namespace
Drupal\webformCode
public function isValidSourceEntity(EntityInterface $webform_entity, EntityInterface $source_entity = NULL);