public ChangedFieldItemList::defaultAccess($operation = 'view', AccountInterface $account = NULL)
Contains the default access logic of this field.
See \Drupal\Core\Entity\EntityAccessControlHandlerInterface::fieldAccess() for the parameter documentation.
\Drupal\Core\Access\AccessResultInterface The access result.
Overrides FieldItemList::defaultAccess
public function defaultAccess($operation = 'view', AccountInterface $account = NULL) { // It is not possible to edit the changed field. return AccessResult::allowedIf($operation !== 'edit'); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!ChangedFieldItemList.php/function/ChangedFieldItemList::defaultAccess/8.1.x