You are here

public function WebformEntityReferenceManagerInterface::getWebform in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformEntityReferenceManagerInterface.php \Drupal\webform\WebformEntityReferenceManagerInterface::getWebform()

Get an entity's target webform.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: A fieldable content entity.

Return value

\Drupal\webform\WebformInterface|null The entity's target webform or NULL.

1 method overrides WebformEntityReferenceManagerInterface::getWebform()
WebformEntityReferenceManager::getWebform in src/WebformEntityReferenceManager.php
Get an entity's target webform.

File

src/WebformEntityReferenceManagerInterface.php, line 103

Class

WebformEntityReferenceManagerInterface
Defines an interface for webform entity manager classes.

Namespace

Drupal\webform

Code

public function getWebform(EntityInterface $entity = NULL);