public function YamlFormRequestInterface::isValidSourceEntity in YAML Form 8
Check if a source entity is attached to a form.
Parameters
\Drupal\Core\Entity\EntityInterface $yamlform_entity: A form or form submission.
\Drupal\Core\Entity\EntityInterface|null $source_entity: A form submission's source entity.
Return value
bool TRUE if a form is attached to a form submission source entity.
1 method overrides YamlFormRequestInterface::isValidSourceEntity()
- YamlFormRequest::isValidSourceEntity in src/
YamlFormRequest.php - Check if a source entity is attached to a form.
File
- src/
YamlFormRequestInterface.php, line 106
Class
- YamlFormRequestInterface
- Provides an interface defining a form request handler.
Namespace
Drupal\yamlformCode
public function isValidSourceEntity(EntityInterface $yamlform_entity, EntityInterface $source_entity = NULL);