You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @Condition(
* id = "parent_node_has_term",
* label = @Translation("Parent node for media has term"),
* context_definitions= {
* "media" = @ContextDefinition("entity:media", required = TRUE , label = @Translation("media"))
* }
* )
These Conditions include (files are all in islandora/src/Plugin/Condition/):
ContentEntityType.php
EntityBundle.php
FileUsesFilesystem.php
MediaHasTerm.php
MediaUsesFilesystem.php
NodeHadNamespace.php
NodeHasParent.php
NodeHasTerm.php
NodeIsPublished.php
ParentNodeHasTerm.php
This should be an easy PR for someone since the change is just one keyword per class file, and the test process could just be to make sure the Conditions are still showing up in the list of Conditions presented to the user.
The text was updated successfully, but these errors were encountered:
This is related to #1241.
As @whikloj points out over at #164 (review), annotations for Context Conditions that contain the
context
keyword, like this:should be updated to use
context_definitions
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Condition!Annotation!Condition.php/property/Condition%3A%3Acontext/8.7.x. So the changed keyword would look like this:These Conditions include (files are all in islandora/src/Plugin/Condition/):
This should be an easy PR for someone since the change is just one keyword per class file, and the test process could just be to make sure the Conditions are still showing up in the list of Conditions presented to the user.
The text was updated successfully, but these errors were encountered: