Browse Source

Replace deprecated 'context' condition annotation with 'context_definitions' (#925)

There was a cleanup done for this deprecation in https://github.com/Islandora/islandora/pull/764
before the 'NodeReferencedByNode' condition was made, then the deprecated annotation must have
just been missed in reviewing https://github.com/Islandora/islandora/pull/808.
pull/928/head v2.6.3
JojoVes 2 years ago committed by GitHub
parent
commit
c36f7d9978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Plugin/Condition/NodeReferencedByNode.php

2
src/Plugin/Condition/NodeReferencedByNode.php

@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* @Condition(
* id = "node_referenced_by_node",
* label = @Translation("Node is referenced by other nodes"),
* context = {
* context_definitions = {
* "node" = @ContextDefinition("entity:node", required = TRUE , label = @Translation("node"))
* }
* )

Loading…
Cancel
Save