TRUE,
EntityContextDefinition::
fromEntityType($content),
EntityContextDefinition::
fromEntityType($content)->
addConstraint('EntityType', 'test_config'
),
];
$data['config entity, matching type, no value'
] =
[ TRUE,
EntityContextDefinition::
fromEntityType($config),
EntityContextDefinition::
fromEntityType($config),
];
$data['generic entity requirement, specific context'
] =
[ TRUE,
new ContextDefinition('entity'
),
EntityContextDefinition::
fromEntityType($config),
];
$data['specific requirement, generic entity context'
] =
[ FALSE,
EntityContextDefinition::
fromEntityType($content),
new ContextDefinition('entity'
),
];
return $data;
}