public function Field::access in Views (for Drupal 7) 8.3
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
- lib/
Views/ field/ Plugin/ views/ field/ Field.php, line 104 - Definition of Views\field\Plugin\views\field\Field.
Class
- Field
- A field that displays fieldapi fields.
Namespace
Views\field\Plugin\views\fieldCode
public function access() {
$base_table = $this
->get_base_table();
return field_access('view', $this->field_info, $this->definition['entity_tables'][$base_table]);
}