You are here

public function WebformRequestInterface::isValidSourceEntity in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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\webform

Code

public function isValidSourceEntity(EntityInterface $webform_entity, EntityInterface $source_entity = NULL);