interface SourcePreviewInterface in Translation Management Tool 8
Interface for source plugin controllers they may be previewed.
@package Drupal\tmgmt
Hierarchy
- interface \Drupal\tmgmt\SourcePreviewInterface
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\tmgmtView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SourcePreviewInterface:: |
public | function | Returns preview url if preview is supported. | 1 |