You are here

interface NodeOptionPremiumHelperInterface in Node Option Premium 8

Interface for API and helper methods.

Hierarchy

Expanded class hierarchy of NodeOptionPremiumHelperInterface

All classes that implement NodeOptionPremiumHelperInterface

File

src/NodeOptionPremiumHelperInterface.php, line 11

Namespace

Drupal\nopremium
View source
interface NodeOptionPremiumHelperInterface {

  /**
   * Checks if the given user has full access to the given entity.
   *
   * @param \Drupal\Core\Entity\ContentEntityInterface $entity
   *   The entity to check for premium access.
   * @param \Drupal\Core\Session\AccountInterface $account
   *   The operating account.
   */
  public function hasFullAccess(ContentEntityInterface $entity, AccountInterface $account);

}

Members

Namesort descending Modifiers Type Description Overrides
NodeOptionPremiumHelperInterface::hasFullAccess public function Checks if the given user has full access to the given entity. 1