public function Field::access

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Entity/Field/Type/Field.php \Drupal\Core\Entity\Field\Type\Field::access()
  2. 8.x drupal/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php \Drupal\field\Plugin\views\field\Field::access()

Check whether current user has access to this handler.

Return value

bool Return TRUE if the user has access to view this field.

Overrides HandlerBase::access

File

drupal/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php, line 154
Definition of Drupal\field\Plugin\views\field\Field.

Class

Field
A field that displays fieldapi fields.

Namespace

Drupal\field\Plugin\views\field

Code

public function access() {
  $base_table = $this
    ->get_base_table();
  return field_access('view', $this->field_info, $this->definition['entity_tables'][$base_table]);
}