/** * {@inheritdoc} */ public function implementsHook($module, $hook) { $implementations = $this->drupal7->module_implements($hook); return in_array($module, $implementations); }