Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / permissions_by_term / modules / permissions_by_entity / src / Service / AccessCheckerInterface.php
index ec89b28758ef3a3709523fd7c51f7ef66f36cfa4..939dc2b0815d7a8499986bbff739207f312151e6 100644 (file)
@@ -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);
 
 }