You are here

function access_by_ref_get_config in Access by Reference 8.2

Same name and namespace in other branches
  1. 8 access_by_ref.module \access_by_ref_get_config()
1 call to access_by_ref_get_config()
access_by_ref_node_access in ./access_by_ref.module

File

./access_by_ref.module, line 183

Code

function access_by_ref_get_config(NodeInterface $node) {
  $entity = \Drupal::entityTypeManager()
    ->getStorage('abrconfig')
    ->loadByProperties(array(
    'bundle' => $node
      ->bundle(),
  ));
  return $entity;
}