class Donation in Node Revision Delete 8
Provides donation messages.
Hierarchy
- class \Drupal\node_revision_delete\Utility\Donation
Expanded class hierarchy of Donation
6 files declare their use of Donation
- AdminSettingsForm.php in src/
Form/ AdminSettingsForm.php - CandidateNodesForm.php in src/
Form/ CandidateNodesForm.php - CandidateRevisionsContentTypeForm.php in src/
Form/ CandidateRevisionsContentTypeForm.php - CandidateRevisionsNodeForm.php in src/
Form/ CandidateRevisionsNodeForm.php - NodeRevisionGenerateForm.php in modules/
node_revision_generate/ src/ Form/ NodeRevisionGenerateForm.php
File
- src/
Utility/ Donation.php, line 10
Namespace
Drupal\node_revision_delete\UtilityView source
class Donation {
/**
* Returns a donation message to print in module pages.
*
* @return string
* The donation message.
*/
public static function getDonationText() {
$url = [
'@url' => 'http://paypal.me/adriancid',
];
return '<div class="description">' . t('If you would like to say thanks and support the development of this module, a <a target="_blank" href="@url">donation</a> will be much appreciated.', $url) . '</div>';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Donation:: |
public static | function | Returns a donation message to print in module pages. |