Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityField.php

function EntityField::access

Overrides HandlerBase::access

2 calls to EntityField::access()
FieldLanguage::access in core/modules/views/src/Plugin/views/field/FieldLanguage.php
Check whether given user has access to this handler.
FieldLanguage::access in core/modules/views/src/Plugin/views/field/FieldLanguage.php
Check whether given user has access to this handler.
1 method overrides EntityField::access()
FieldLanguage::access in core/modules/views/src/Plugin/views/field/FieldLanguage.php
Check whether given user has access to this handler.

File

core/modules/views/src/Plugin/views/field/EntityField.php, line 246

Class

EntityField
A field that displays entity field data.

Namespace

Drupal\views\Plugin\views\field

Code

public function access(AccountInterface $account) {
    $access_control_handler = $this->entityTypeManager
        ->getAccessControlHandler($this->getEntityType());
    return $access_control_handler->fieldAccess('view', $this->getFieldDefinition(), $account);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal