You are here

public static function FieldPermissionsServiceInterface::isCommentField in Field Permissions 8

Same name and namespace in other branches
  1. 8.2 src/FieldPermissionsServiceInterface.php \Drupal\field_permissions\FieldPermissionsServiceInterface::isCommentField()

Field is attached to comment entity.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: Fields to get permissions.

Return value

bool TRUE if in a comment entity.

1 method overrides FieldPermissionsServiceInterface::isCommentField()
FieldPermissionsService::isCommentField in src/FieldPermissionsService.php
Field is attached to comment entity.

File

src/FieldPermissionsServiceInterface.php, line 70

Class

FieldPermissionsServiceInterface
Implement FieldPermission Interface.

Namespace

Drupal\field_permissions

Code

public static function isCommentField(FieldDefinitionInterface $field_definition);