You are here

public function WebformSourceEntityManagerInterface::getSourceEntity in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformSourceEntityManagerInterface.php \Drupal\webform\Plugin\WebformSourceEntityManagerInterface::getSourceEntity()

Detect and return a source entity from current context.

Parameters

string|string[] $ignored_types: Entity types that may not be used as a source entity.

Return value

\Drupal\Core\Entity\EntityInterface|null Source entity or NULL when no source entity is found.

1 method overrides WebformSourceEntityManagerInterface::getSourceEntity()
WebformSourceEntityManager::getSourceEntity in src/Plugin/WebformSourceEntityManager.php
Detect and return a source entity from current context.

File

src/Plugin/WebformSourceEntityManagerInterface.php, line 21

Class

WebformSourceEntityManagerInterface
Interface of webform source entity plugin manager.

Namespace

Drupal\webform\Plugin

Code

public function getSourceEntity($ignored_types = []);