You are here

public function EdgeEntityInsertEventDeriver::getLabel in Apigee Edge 8

Returns the event's label. Example: 'After saving a new App'.

Parameters

\Drupal\apigee_edge\Entity\EdgeEntityTypeInterface $entity_type: The Apigee Edge entity type.

Return value

string The event's label.

Overrides EdgeEntityEventDeriverInterface::getLabel

File

modules/apigee_edge_actions/src/Plugin/RulesEvent/EdgeEntityInsertEventDeriver.php, line 33

Class

EdgeEntityInsertEventDeriver
Deriver for Edge entity insert events.

Namespace

Drupal\apigee_edge_actions\Plugin\RulesEvent

Code

public function getLabel(EdgeEntityTypeInterface $entity_type) : string {
  return $this
    ->t('After saving a new @entity_type', [
    '@entity_type' => $entity_type
      ->getSingularLabel(),
  ]);
}