public function ContentModerationIPEAccess::access in Lightning Workflow 8.3
Same name and namespace in other branches
- 8 src/Plugin/IPEAccess/ContentModerationIPEAccess.php \Drupal\lightning_workflow\Plugin\IPEAccess\ContentModerationIPEAccess::access()
- 8.2 src/Plugin/IPEAccess/ContentModerationIPEAccess.php \Drupal\lightning_workflow\Plugin\IPEAccess\ContentModerationIPEAccess::access()
File
- src/
Plugin/ IPEAccess/ ContentModerationIPEAccess.php, line 86
Class
- ContentModerationIPEAccess
- Provides Panels IPE access logic for Content Moderation integration.
Namespace
Drupal\lightning_workflow\Plugin\IPEAccessCode
public function access(PanelsDisplayVariant $display) {
$entity = $display
->getContexts()['@panelizer.entity_context:entity']
->getContextValue();
return $this
->isLatestRevision($entity) && !$this->information
->isLiveRevision($entity);
}