Condition::$configure_permissions

The permissions allowed to access the configuration UI for this plugin.

Array of permission strings as declared in a *.permissions.yml file. If any one of these permissions apply for the relevant user, we allow access.

The key should be used as follows. Note that we add a space between "@" and "Condition", since we do not want to trigger the annotation parser here; you should remove that space in your actual annotation:

@ Condition( id = "my_module_user_is_blocked", label =

Plugin annotation


@Translation("My User is blocked"),
    category = @Translation("User"),
    context_definitions = {
      "user" = @ContextDefinition("entity:user",
        label = @Translation("User")
     ),
     configure_permissions = {
       "administer users",
       "block users"
     }
  }
)

Type: string[]

File

src/Core/Annotation/Condition.php, line 44

Class

Condition
Extension of the Condition annotation class.

Namespace

Drupal\rules\Core\Annotation

Code

public $configure_permissions;