FieldItemList::defaultAccess

public function FieldItemList::defaultAccess

public FieldItemList::defaultAccess($operation = 'view', AccountInterface $account = NULL)

Contains the default access logic of this field.

See \Drupal\Core\Entity\EntityAccessControlHandlerInterface::fieldAccess() for the parameter documentation.

Return value

\Drupal\Core\Access\AccessResultInterface The access result.登录查看完整内容