You are here

interface GroupCreationEventInterface in Organic groups 8

The group creation event interface.

Hierarchy

Expanded class hierarchy of GroupCreationEventInterface

All classes that implement GroupCreationEventInterface

2 files declare their use of GroupCreationEventInterface
GroupTypeManager.php in src/GroupTypeManager.php
GroupTypeManagerTest.php in tests/src/Unit/GroupTypeManagerTest.php

File

src/Event/GroupCreationEventInterface.php, line 10

Namespace

Drupal\og\Event
View source
interface GroupCreationEventInterface {

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

  /**
   * Returns the entity type ID of the group to which the permissions apply.
   *
   * @return string
   *   The entity type ID.
   */
  public function getEntityTypeId();

  /**
   * Returns the bundle ID of the group to which the permissions apply.
   *
   * @return string
   *   The bundle ID.
   */
  public function getBundleId();

}

Members

Namesort descending Modifiers Type Description Overrides
GroupCreationEventInterface::EVENT_NAME constant The event name.
GroupCreationEventInterface::getBundleId public function Returns the bundle ID of the group to which the permissions apply. 1
GroupCreationEventInterface::getEntityTypeId public function Returns the entity type ID of the group to which the permissions apply. 1