Search for all

  1. Search 7.x-2.x for all
  2. Other projects
Title Object type File name Summary
UserHasEntityFieldAccess::$entityTypeManager property src/Plugin/Condition/UserHasEntityFieldAccess.php The entity type manager.
UserHasEntityFieldAccess::create function src/Plugin/Condition/UserHasEntityFieldAccess.php Creates an instance of the plugin.
UserHasEntityFieldAccess::doEvaluate function src/Plugin/Condition/UserHasEntityFieldAccess.php Evaluate if the user has access to the field of an entity.
UserHasEntityFieldAccess::__construct function src/Plugin/Condition/UserHasEntityFieldAccess.php Constructs a UserHasEntityFieldAccess object.
UserHasEntityFieldAccessTest class tests/src/Unit/Integration/Condition/UserHasEntityFieldAccessTest.php @coversDefaultClass \Drupal\rules\Plugin\Condition\UserHasEntityFieldAccess[[api-linebreak]]
@group RulesCondition
UserHasEntityFieldAccessTest.php file tests/src/Unit/Integration/Condition/UserHasEntityFieldAccessTest.php
UserHasEntityFieldAccessTest::$condition property tests/src/Unit/Integration/Condition/UserHasEntityFieldAccessTest.php The condition to be tested.
UserHasEntityFieldAccessTest::setUp function tests/src/Unit/Integration/Condition/UserHasEntityFieldAccessTest.php
UserHasEntityFieldAccessTest::testConditionEvaluation function tests/src/Unit/Integration/Condition/UserHasEntityFieldAccessTest.php Tests evaluating the condition.
UserHasRole class src/Plugin/Condition/UserHasRole.php Provides a 'User has roles(s)' condition.
UserHasRole.php file src/Plugin/Condition/UserHasRole.php
UserHasRole::doEvaluate function src/Plugin/Condition/UserHasRole.php Evaluate if user has role(s).
UserHasRoleTest class tests/src/Unit/Integration/Condition/UserHasRoleTest.php @coversDefaultClass \Drupal\rules\Plugin\Condition\UserHasRole[[api-linebreak]]
@group RulesCondition
UserHasRoleTest.php file tests/src/Unit/Integration/Condition/UserHasRoleTest.php
UserHasRoleTest::$condition property tests/src/Unit/Integration/Condition/UserHasRoleTest.php The condition that is being tested.
UserHasRoleTest::setUp function tests/src/Unit/Integration/Condition/UserHasRoleTest.php
UserHasRoleTest::testConditionEvaluation function tests/src/Unit/Integration/Condition/UserHasRoleTest.php Tests evaluating the condition.
UserHasRoleTest::testInvalidOperationException function tests/src/Unit/Integration/Condition/UserHasRoleTest.php Test the behavior with unsupported operations.
UserIsBlocked class src/Plugin/Condition/UserIsBlocked.php Provides a 'User is blocked' condition.
UserIsBlocked.php file src/Plugin/Condition/UserIsBlocked.php
UserIsBlocked::doEvaluate function src/Plugin/Condition/UserIsBlocked.php Check if user is blocked.
UserIsBlockedTest class tests/src/Unit/Integration/Condition/UserIsBlockedTest.php @coversDefaultClass \Drupal\rules\Plugin\Condition\UserIsBlocked[[api-linebreak]]
@group RulesCondition
UserIsBlockedTest.php file tests/src/Unit/Integration/Condition/UserIsBlockedTest.php
UserIsBlockedTest::$condition property tests/src/Unit/Integration/Condition/UserIsBlockedTest.php The condition to be tested.
UserIsBlockedTest::setUp function tests/src/Unit/Integration/Condition/UserIsBlockedTest.php
UserIsBlockedTest::testConditionEvaluation function tests/src/Unit/Integration/Condition/UserIsBlockedTest.php Tests evaluating the condition.
UserLoginEvent class src/Event/UserLoginEvent.php Event that is fired when a user logs in.
UserLoginEvent.php file src/Event/UserLoginEvent.php
UserLoginEvent::$account property src/Event/UserLoginEvent.php The user account.
UserLoginEvent::EVENT_NAME constant src/Event/UserLoginEvent.php
UserLoginEvent::__construct function src/Event/UserLoginEvent.php Constructs the object.
UserLoginTest class tests/src/Unit/Integration/Event/UserLoginTest.php Checks that the event "rules_user_login" is correctly defined.
UserLoginTest.php file tests/src/Unit/Integration/Event/UserLoginTest.php
UserLoginTest::testUserLoginEvent function tests/src/Unit/Integration/Event/UserLoginTest.php Tests the event metadata.
UserLogoutEvent class src/Event/UserLogoutEvent.php Event that is fired when a user logs out.
UserLogoutEvent.php file src/Event/UserLogoutEvent.php
UserLogoutEvent::EVENT_NAME constant src/Event/UserLogoutEvent.php
UserLogoutTest class tests/src/Unit/Integration/Event/UserLogoutTest.php Checks that the event "rules_user_logout" is correctly defined.
UserLogoutTest.php file tests/src/Unit/Integration/Event/UserLogoutTest.php
UserLogoutTest::testUserLogoutEvent function tests/src/Unit/Integration/Event/UserLogoutTest.php Tests the event metadata.
UserRoleAdd class src/Plugin/RulesAction/UserRoleAdd.php Provides a 'Add user role' action.
UserRoleAdd.php file src/Plugin/RulesAction/UserRoleAdd.php
UserRoleAdd::$saveLater property src/Plugin/RulesAction/UserRoleAdd.php Flag that indicates if the entity should be auto-saved later.
UserRoleAdd::autoSaveContext function src/Plugin/RulesAction/UserRoleAdd.php Returns a list of context names that should be auto-saved after execution.
UserRoleAdd::doExecute function src/Plugin/RulesAction/UserRoleAdd.php Assign role to a user.
UserRoleAddTest class tests/src/Unit/Integration/RulesAction/UserRoleAddTest.php @coversDefaultClass \Drupal\rules\Plugin\RulesAction\UserRoleAdd[[api-linebreak]]
@group RulesAction
UserRoleAddTest.php file tests/src/Unit/Integration/RulesAction/UserRoleAddTest.php
UserRoleAddTest::$action property tests/src/Unit/Integration/RulesAction/UserRoleAddTest.php The action that is being tested.
UserRoleAddTest::setUp function tests/src/Unit/Integration/RulesAction/UserRoleAddTest.php
UserRoleAddTest::testAddExistingAndNonexistentRole function tests/src/Unit/Integration/RulesAction/UserRoleAddTest.php Tests adding of one existing and one nonexistent role to user.