public function WebformSourceEntityInterface::getSourceEntity in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformSourceEntityInterface.php \Drupal\webform\Plugin\WebformSourceEntityInterface::getSourceEntity()
Detect and return a source entity from current context.
Parameters
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.
2 methods override WebformSourceEntityInterface::getSourceEntity()
- QueryStringWebformSourceEntity::getSourceEntity in src/
Plugin/ WebformSourceEntity/ QueryStringWebformSourceEntity.php - Detect and return a source entity from current context.
- RouteParametersWebformSourceEntity::getSourceEntity in src/
Plugin/ WebformSourceEntity/ RouteParametersWebformSourceEntity.php - Detect and return a source entity from current context.
File
- src/
Plugin/ WebformSourceEntityInterface.php, line 21
Class
- WebformSourceEntityInterface
- Interface of a webform source entity plugin.
Namespace
Drupal\webform\PluginCode
public function getSourceEntity(array $ignored_types);