You are here

WebformSourceEntityInterface.php in Webform 8.5

Same filename and directory in other branches
  1. 6.x src/Plugin/WebformSourceEntityInterface.php

File

src/Plugin/WebformSourceEntityInterface.php
View source
<?php

namespace Drupal\webform\Plugin;

use Drupal\Component\Plugin\PluginInspectionInterface;

/**
 * Interface of a webform source entity plugin.
 */
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);

}

Interfaces

Namesort descending Description
WebformSourceEntityInterface Interface of a webform source entity plugin.