class GroupCreationEvent in Organic groups 8
The group creation event.
Hierarchy
- class \Drupal\og\Event\GroupCreationEvent extends \Symfony\Component\EventDispatcher\Event implements GroupCreationEventInterface
Expanded class hierarchy of GroupCreationEvent
2 files declare their use of GroupCreationEvent
- GroupTypeManager.php in src/
GroupTypeManager.php - GroupTypeManagerTest.php in tests/
src/ Unit/ GroupTypeManagerTest.php
File
- src/
Event/ GroupCreationEvent.php, line 12
Namespace
Drupal\og\EventView source
class GroupCreationEvent extends Event implements GroupCreationEventInterface {
/**
* The entity type ID of the group type.
*
* @var string
*/
protected $entityTypeId;
/**
* The bundle ID of the group type.
*
* @var string
*/
protected $bundleId;
/**
* Constructs a GroupCreationEvent object.
*
* @param string $entity_type_id
* The entity type ID of the group type.
* @param string $bundle_id
* The bundle ID of the group type.
*/
public function __construct($entity_type_id, $bundle_id) {
$this->entityTypeId = $entity_type_id;
$this->bundleId = $bundle_id;
}
/**
* {@inheritdoc}
*/
public function getEntityTypeId() {
return $this->entityTypeId;
}
/**
* {@inheritdoc}
*/
public function getBundleId() {
return $this->bundleId;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GroupCreationEvent:: |
protected | property | The bundle ID of the group type. | |
GroupCreationEvent:: |
protected | property | The entity type ID of the group type. | |
GroupCreationEvent:: |
public | function |
Returns the bundle ID of the group to which the permissions apply. Overrides GroupCreationEventInterface:: |
|
GroupCreationEvent:: |
public | function |
Returns the entity type ID of the group to which the permissions apply. Overrides GroupCreationEventInterface:: |
|
GroupCreationEvent:: |
public | function | Constructs a GroupCreationEvent object. | |
GroupCreationEventInterface:: |
constant | The event name. |