interface GroupContentEntityOperationAccessEventInterface in Organic groups 8
Interface for events that provide access to group content entity operations.
Hierarchy
- interface \Drupal\Core\Cache\CacheableDependencyInterface
- interface \Drupal\Core\Cache\RefinableCacheableDependencyInterface
- interface \Drupal\og\Event\AccessEventInterface
- interface \Drupal\og\Event\GroupContentEntityOperationAccessEventInterface
- interface \Drupal\og\Event\AccessEventInterface
- interface \Drupal\Core\Cache\RefinableCacheableDependencyInterface
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\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccessEventInterface:: |
public | function | Declare that access is being denied. | 1 |
AccessEventInterface:: |
public | function | Returns the current access result object. | 1 |
AccessEventInterface:: |
public | function | Returns the group that provides the context for the access check. | 1 |
AccessEventInterface:: |
public | function | Returns the user for which access is being determined. | 1 |
AccessEventInterface:: |
public | function | Declare that access is being granted. | 1 |
AccessEventInterface:: |
public | function | Merges the given access result with the existing access result. | 1 |
CacheableDependencyInterface:: |
public | function | The cache contexts associated with this object. | 34 |
CacheableDependencyInterface:: |
public | function | The maximum age for which this object may be cached. | 34 |
CacheableDependencyInterface:: |
public | function | The cache tags associated with this object. | 27 |
GroupContentEntityOperationAccessEventInterface:: |
constant | The event name. | ||
GroupContentEntityOperationAccessEventInterface:: |
public | function | Returns the group content entity upon which the operation is performed. | 1 |
GroupContentEntityOperationAccessEventInterface:: |
public | function | Returns the entity operation being performed. | 1 |
RefinableCacheableDependencyInterface:: |
public | function | Adds a dependency on an object: merges its cacheability metadata. | 1 |
RefinableCacheableDependencyInterface:: |
public | function | Adds cache contexts. | 1 |
RefinableCacheableDependencyInterface:: |
public | function | Adds cache tags. | 1 |
RefinableCacheableDependencyInterface:: |
public | function | Merges the maximum age (in seconds) with the existing maximum age. | 1 |