You are here

protected function WebformScheduledTask::urlRouteParameters in Webform Scheduled Tasks 8.2

Gets an array of placeholders for this entity.

Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic.

Parameters

string $rel: The link relationship type, for example: canonical or edit-form.

Return value

array An array of URI placeholders.

Overrides EntityBase::urlRouteParameters

File

src/Entity/WebformScheduledTask.php, line 171

Class

WebformScheduledTask
Defines the webform schedule entity type.

Namespace

Drupal\webform_scheduled_tasks\Entity

Code

protected function urlRouteParameters($rel) {
  return parent::urlRouteParameters($rel) + [
    'webform' => $this->webform,
  ];
}