class MailSafetyParamConverter in Mail Safety 8
Class MailSafetyParamConverter.
@package Drupal\mail_safety\ParamConverter
Hierarchy
- class \Drupal\mail_safety\ParamConverter\MailSafetyParamConverter implements ParamConverterInterface
Expanded class hierarchy of MailSafetyParamConverter
1 string reference to 'MailSafetyParamConverter'
1 service uses MailSafetyParamConverter
File
- src/
ParamConverter/ MailSafetyParamConverter.php, line 15
Namespace
Drupal\mail_safety\ParamConverterView source
class MailSafetyParamConverter implements ParamConverterInterface {
/**
* {@inheritdoc}
*/
public function convert($mail_id, $definition, $name, array $defaults) {
return MailSafetyController::load($mail_id);
}
/**
* {@inheritdoc}
*/
public function applies($definition, $name, Route $route) {
return !empty($definition['type']) && $definition['type'] == 'mail_safety';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MailSafetyParamConverter:: |
public | function |
Determines if the converter applies to a specific route and variable. Overrides ParamConverterInterface:: |
|
MailSafetyParamConverter:: |
public | function |
Converts path variables to their corresponding objects. Overrides ParamConverterInterface:: |