You are here

public function InlineEditingDisabler::moduleImplementsAlter in Workbench Moderation 8

Same name and namespace in other branches
  1. 8.2 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_moderation

Code

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;
  }
}