You are here

interface GroupContentEntityOperationAccessEventInterface in Organic groups 8

Interface for events that provide access to group content entity operations.

Hierarchy

Expanded class hierarchy of GroupContentEntityOperationAccessEventInterface

All classes that implement GroupContentEntityOperationAccessEventInterface

2 files declare their use of GroupContentEntityOperationAccessEventInterface
OgEventSubscriber.php in src/EventSubscriber/OgEventSubscriber.php
OgTestEventSubscriber.php in tests/modules/og_test/src/EventSubscriber/OgTestEventSubscriber.php

File

src/Event/GroupContentEntityOperationAccessEventInterface.php, line 12

Namespace

Drupal\og\Event
View source
interface GroupContentEntityOperationAccessEventInterface extends AccessEventInterface {

  /**
   * The event name.
   */
  const EVENT_NAME = 'og.group_content_entity_operation_access';

  /**
   * Returns the entity operation being performed.
   *
   * @return string
   *   The entity operation, such as 'create', 'update' or 'delete'.
   */
  public function getOperation() : string;

  /**
   * Returns the group content entity upon which the operation is performed.
   *
   * @return \Drupal\Core\Entity\ContentEntityInterface
   *   The group content entity.
   */
  public function getGroupContent() : ContentEntityInterface;

}

Members

Namesort descending Modifiers Type Description Overrides
AccessEventInterface::denyAccess public function Declare that access is being denied. 1
AccessEventInterface::getAccessResult public function Returns the current access result object. 1
AccessEventInterface::getGroup public function Returns the group that provides the context for the access check. 1
AccessEventInterface::getUser public function Returns the user for which access is being determined. 1
AccessEventInterface::grantAccess public function Declare that access is being granted. 1
AccessEventInterface::mergeAccessResult public function Merges the given access result with the existing access result. 1
CacheableDependencyInterface::getCacheContexts public function The cache contexts associated with this object. 34
CacheableDependencyInterface::getCacheMaxAge public function The maximum age for which this object may be cached. 34
CacheableDependencyInterface::getCacheTags public function The cache tags associated with this object. 27
GroupContentEntityOperationAccessEventInterface::EVENT_NAME constant The event name.
GroupContentEntityOperationAccessEventInterface::getGroupContent public function Returns the group content entity upon which the operation is performed. 1
GroupContentEntityOperationAccessEventInterface::getOperation public function Returns the entity operation being performed. 1
RefinableCacheableDependencyInterface::addCacheableDependency public function Adds a dependency on an object: merges its cacheability metadata. 1
RefinableCacheableDependencyInterface::addCacheContexts public function Adds cache contexts. 1
RefinableCacheableDependencyInterface::addCacheTags public function Adds cache tags. 1
RefinableCacheableDependencyInterface::mergeCacheMaxAge public function Merges the maximum age (in seconds) with the existing maximum age. 1