public function WebformSourceEntityManagerInterface::getSourceEntity in Webform 8.5
Same name and namespace in other branches
- 6.x 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\PluginCode
public function getSourceEntity($ignored_types = []);