You are here

class GroupCreationEvent in Organic groups 8

The group creation event.

Hierarchy

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\Event
View 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

Namesort descending Modifiers Type Description Overrides
GroupCreationEvent::$bundleId protected property The bundle ID of the group type.
GroupCreationEvent::$entityTypeId protected property The entity type ID of the group type.
GroupCreationEvent::getBundleId public function Returns the bundle ID of the group to which the permissions apply. Overrides GroupCreationEventInterface::getBundleId
GroupCreationEvent::getEntityTypeId public function Returns the entity type ID of the group to which the permissions apply. Overrides GroupCreationEventInterface::getEntityTypeId
GroupCreationEvent::__construct public function Constructs a GroupCreationEvent object.
GroupCreationEventInterface::EVENT_NAME constant The event name.