X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fmodules%2Fcontrib%2Fpermissions_by_term%2Fmodules%2Fpermissions_by_entity%2Fsrc%2FService%2FAccessCheckerInterface.php;fp=web%2Fmodules%2Fcontrib%2Fpermissions_by_term%2Fmodules%2Fpermissions_by_entity%2Fsrc%2FService%2FAccessCheckerInterface.php;h=939dc2b0815d7a8499986bbff739207f312151e6;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=ec89b28758ef3a3709523fd7c51f7ef66f36cfa4;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/modules/contrib/permissions_by_term/modules/permissions_by_entity/src/Service/AccessCheckerInterface.php b/web/modules/contrib/permissions_by_term/modules/permissions_by_entity/src/Service/AccessCheckerInterface.php index ec89b2875..939dc2b08 100644 --- a/web/modules/contrib/permissions_by_term/modules/permissions_by_entity/src/Service/AccessCheckerInterface.php +++ b/web/modules/contrib/permissions_by_term/modules/permissions_by_entity/src/Service/AccessCheckerInterface.php @@ -2,7 +2,7 @@ namespace Drupal\permissions_by_entity\Service; -use Drupal\Core\Entity\ContentEntityInterface; +use Drupal\Core\Entity\FieldableEntityInterface; /** * Interface AccessCheckerInterface. @@ -12,16 +12,16 @@ use Drupal\Core\Entity\ContentEntityInterface; interface AccessCheckerInterface { /** - * Checks if a user is allowed to access a content entity. + * Checks if a user is allowed to access a fieldable entity. * - * @param \Drupal\Core\Entity\ContentEntityInterface $entity - * The content entity. + * @param \Drupal\Core\Entity\FieldableEntityInterface $entity + * A fieldable entity. * @param bool|int $uid * (Optional) Defaults to the uid of the current user. * * @return bool TRUE if access is allowed, otherwise FALSE. * TRUE if access is allowed, otherwise FALSE. */ - public function isAccessAllowed(ContentEntityInterface $entity, $uid = FALSE); + public function isAccessAllowed(FieldableEntityInterface $entity, $uid = FALSE); }