You are here

public function ProfileLabelEvent::__construct in Profile 8

Constructs a new ProfileLabelEvent object.

Parameters

\Drupal\profile\Entity\ProfileInterface $profile: The profile.

string $label: The profile label.

File

src/Event/ProfileLabelEvent.php, line 37

Class

ProfileLabelEvent
Defines the profile label event.

Namespace

Drupal\profile\Event

Code

public function __construct(ProfileInterface $profile, $label) {
  $this->profile = $profile;
  $this->label = $label;
}