function EntityTestAccessControlHandler::buildCreateAccessCid
Overrides EntityAccessControlHandler::buildCreateAccessCid
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestAccessControlHandler.php, line 108
Class
- EntityTestAccessControlHandler
- Defines the access control handler for the test entity type.
Namespace
Drupal\entity_testCode
protected function buildCreateAccessCid(array $context, ?string $entity_bundle) : string {
$cid = parent::buildCreateAccessCid([], $entity_bundle);
$cid .= isset($context['context_var1']) ? ":{$context['context_var1']}" : '';
$cid .= isset($context['context_var2']) ? ":{$context['context_var2']}" : '';
return $cid;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.