// specific data type like 'entity:user'. However, if this type is more
// specific, do not consider a more generic type to be a match.
str_starts_with($that_type, "
$this_type:"
) );
} /**
* {@inheritdoc}
*/
public function isSatisfiedBy(ContextInterface
$context) { $definition =
$context->
getContextDefinition();
if (!
$this->
dataTypeMatches($context)) { return FALSE;
} // Get the value for this context, either directly if possible or by
// introspecting the definition.
if ($context->
hasContextValue()) { $values =
[$context->
getContextData()];
} elseif ($definition instanceof self
) { $values =
$definition->
getSampleValues();
}