You are here

interface WebformSourceEntityInterface in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformSourceEntityInterface.php \Drupal\webform\Plugin\WebformSourceEntityInterface

Interface of a webform source entity plugin.

Hierarchy

Expanded class hierarchy of WebformSourceEntityInterface

All classes that implement WebformSourceEntityInterface

File

src/Plugin/WebformSourceEntityInterface.php, line 10

Namespace

Drupal\webform\Plugin
View source
interface WebformSourceEntityInterface extends PluginInspectionInterface {

  /**
   * Detect and return a source entity from current context.
   *
   * @param string[] $ignored_types
   *   Entity types that may not be used as a source entity.
   *
   * @return \Drupal\Core\Entity\EntityInterface|null
   *   Source entity or NULL when no source entity is found.
   */
  public function getSourceEntity(array $ignored_types);

}

Members

Namesort descending Modifiers Type Description Overrides
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2
WebformSourceEntityInterface::getSourceEntity public function Detect and return a source entity from current context. 2