public function InlineEditingDisabler::moduleImplementsAlter in Workbench Moderation 8.2
Same name and namespace in other branches
- 8 src/InlineEditingDisabler.php \Drupal\workbench_moderation\InlineEditingDisabler::moduleImplementsAlter()
Implements hook_module_implements_alter().
File
- src/
InlineEditingDisabler.php, line 44
Class
- InlineEditingDisabler
- Disables the inline editing for entities with forward revisions.
Namespace
Drupal\workbench_moderationCode
public function moduleImplementsAlter(&$implementations, $hook) {
if ($hook == 'entity_view_alter') {
// Find the quickedit implementation and move workbench after it.
unset($implementations['workbench_moderation']);
$implementations['workbench_moderation'] = FALSE;
}
}