DomainAccessEditor.php 711 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Drupal\domain_access\Plugin\views\access;
  3. /**
  4. * Access plugin that provides domain-editing access control.
  5. *
  6. * @ViewsAccess(
  7. * id = "domain_access_admin",
  8. * title = @Translation("Domain Access: Administer domain editors"),
  9. * help = @Translation("Access will be granted to domains on which the user may assign editors.")
  10. * )
  11. */
  12. class DomainAccessEditor extends DomainAccessContent {
  13. /**
  14. * Sets the permission to use when checking access.
  15. *
  16. * @var string
  17. */
  18. protected $permission = 'assign domain editors';
  19. /**
  20. * Sets the permission to use when checking all access.
  21. *
  22. * @var string
  23. */
  24. protected $allPermission = 'assign editors to any domain';
  25. }