@@ 655-666 (lines=12) @@ | ||
652 | * @param Url $url |
|
653 | * @param AclInterface|null $addAces A list of ACEs |
|
654 | */ |
|
655 | protected function appendAddAcesToUrl(Url $url, AclInterface $addAces = null) |
|
656 | { |
|
657 | if ($addAces !== null) { |
|
658 | $url->getQuery()->modify( |
|
659 | $this->convertAclToQueryArray( |
|
660 | $addAces, |
|
661 | Constants::CONTROL_ADD_ACE_PRINCIPAL, |
|
662 | Constants::CONTROL_ADD_ACE_PERMISSION |
|
663 | ) |
|
664 | ); |
|
665 | } |
|
666 | } |
|
667 | ||
668 | /** |
|
669 | * Appends removeAces parameters to url |
|
@@ 674-685 (lines=12) @@ | ||
671 | * @param Url $url |
|
672 | * @param AclInterface|null $removeAces A list of ACEs |
|
673 | */ |
|
674 | protected function appendRemoveAcesToUrl(Url $url, AclInterface $removeAces = null) |
|
675 | { |
|
676 | if ($removeAces !== null) { |
|
677 | $url->getQuery()->modify( |
|
678 | $this->convertAclToQueryArray( |
|
679 | $removeAces, |
|
680 | Constants::CONTROL_REMOVE_ACE_PRINCIPAL, |
|
681 | Constants::CONTROL_REMOVE_ACE_PERMISSION |
|
682 | ) |
|
683 | ); |
|
684 | } |
|
685 | } |
|
686 | ||
687 | /** |
|
688 | * Gets the content link from the cache if it is there or loads it into the |