You are here

public function EntityAccessByFieldPermissions::getRealmForFieldValue in Open Social 8.5

Same name and namespace in other branches
  1. 8.9 modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()
  2. 8 modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()
  3. 8.2 modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()
  4. 8.3 modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()
  5. 8.4 modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()
  6. 8.6 modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()
  7. 8.7 modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()
  8. 8.8 modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()
  9. 10.3.x modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()
  10. 10.0.x modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()
  11. 10.1.x modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()
  12. 10.2.x modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php \Drupal\entity_access_by_field\EntityAccessByFieldPermissions::getRealmForFieldValue()

Returns a realm for a field value in order to create access.

Return value

string The string with the realm created.

1 call to EntityAccessByFieldPermissions::getRealmForFieldValue()
EntityAccessByFieldPermissions::getRealmWithPermission in modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php
Get the realms array with permissions as value.

File

modules/custom/entity_access_by_field/src/EntityAccessByFieldPermissions.php, line 131

Class

EntityAccessByFieldPermissions
EntityAccessByFieldPermissions.

Namespace

Drupal\entity_access_by_field

Code

public function getRealmForFieldValue($op, $entity_type, $bundle_id, $field_name, $field_value) {
  $realm = $op . '_' . $entity_type . '_' . $bundle_id . '_' . $field_name . '_' . $field_value;
  return $realm;
}