Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Grimreaper created an issue. See original summary.

Grimreaper’s picture

Title: Move the code form entity_visibility_preview_entity_access into a class with proper dependency injection » Move the code from entity_visibility_preview_entity_access into a class with proper dependency injection

Fix typo in title.

Grimreaper’s picture

Version: » 8.x-1.x-dev
Piegefull’s picture

Piegefull’s picture

Grimreaper’s picture

Assigned: Grimreaper » Piegefull
Status: Needs review » Needs work
  1. +++ b/src/HookHandler/EntityAccessHookHandler.php
    @@ -0,0 +1,79 @@
    +   *   TRUE if the condition is satisfied, FALSE otherwise.
    

    Wrong comment. AccessResult depending on plugins evalutaion result.

  2. +++ b/src/HookHandler/EntityAccessHookHandler.php
    @@ -0,0 +1,79 @@
    +    $entityVisibilityPreviewConditionPluginManager = \Drupal::service('plugin.manager.entity_visibility_preview_condition');
    

    The goal is to have dependency injection.

Piegefull’s picture

  • Piegefull authored ce5a4a2 on 8.x-1.x
    Issue #3096799 by Piegefull, Grimreaper: Move the code from...
Grimreaper’s picture

Assigned: Grimreaper » Unassigned
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.