You are here

interface SourcePreviewInterface in Translation Management Tool 8

Interface for source plugin controllers they may be previewed.

@package Drupal\tmgmt

Hierarchy

Expanded class hierarchy of SourcePreviewInterface

All classes that implement SourcePreviewInterface

3 files declare their use of SourcePreviewInterface
ContentEntitySource.php in sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php
JobItemForm.php in src/Form/JobItemForm.php
LocalTaskItemForm.php in translators/tmgmt_local/src/Form/LocalTaskItemForm.php

File

src/SourcePreviewInterface.php, line 10

Namespace

Drupal\tmgmt
View source
interface SourcePreviewInterface {

  /**
   * Returns preview url if preview is supported.
   *
   * @param \Drupal\tmgmt\JobItemInterface $job_item
   *   Job item.
   *
   * @return \Drupal\Core\Url
   *   Url object.
   */
  public function getPreviewUrl(JobItemInterface $job_item);

}

Members

Namesort descending Modifiers Type Description Overrides
SourcePreviewInterface::getPreviewUrl public function Returns preview url if preview is supported. 1