Same name and namespace in other branches
- 1.1.x src/Plugin/Field/FieldFormatter/EntityReferenceFilteredLinkFormatter.php \Drupal\entity_ref_filtering_link\Plugin\Field\FieldFormatter\EntityReferenceFilteredLinkFormatter::checkAccess() 1 comment
File
-
src/
Plugin/ Field/ FieldFormatter/ EntityReferenceFilteredLinkFormatter.php, line 247
Class
- EntityReferenceFilteredLinkFormatter
- Plugin implementation of the 'entity_reference_filtered_link' formatter.
Namespace
Drupal\entity_ref_filtering_link\Plugin\Field\FieldFormatterCode
protected function checkAccess(EntityInterface $entity) {
return $entity->access('view label', NULL, TRUE);
}