You are here

interface WebformSourceEntityManagerInterface in Webform 6.x

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

Interface of webform source entity plugin manager.

Hierarchy

Expanded class hierarchy of WebformSourceEntityManagerInterface

All classes that implement WebformSourceEntityManagerInterface

2 files declare their use of WebformSourceEntityManagerInterface
WebformEntityAccessControlHandlerTest.php in tests/src/Unit/WebformEntityAccessControlHandlerTest.php
WebformRequest.php in src/WebformRequest.php

File

src/Plugin/WebformSourceEntityManagerInterface.php, line 10

Namespace

Drupal\webform\Plugin
View source
interface WebformSourceEntityManagerInterface extends PluginManagerInterface {

  /**
   * Detect and return a source entity from current context.
   *
   * @param string|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($ignored_types = []);

}

Members

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 1
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 6
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 3
WebformSourceEntityManagerInterface::getSourceEntity public function Detect and return a source entity from current context. 1