protected function PreviewLinkTasks::supportsPreviewLink in Preview Link 8
Check if the entity type is supported.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entityType: The entity type we're checking.
Return value
bool TRUE if it supports previews otherwise FALSE.
1 call to PreviewLinkTasks::supportsPreviewLink()
- PreviewLinkTasks::getDerivativeDefinitions in src/
Plugin/ Derivative/ PreviewLinkTasks.php - Gets the definition of all derivatives of a base plugin.
File
- src/
Plugin/ Derivative/ PreviewLinkTasks.php, line 91
Class
- PreviewLinkTasks
- Preview link task generation.
Namespace
Drupal\preview_link\Plugin\DerivativeCode
protected function supportsPreviewLink(EntityTypeInterface $entityType) {
return $entityType
->isRevisionable();
}