You are here

public static function Donation::getDonationText in Node Revision Delete 8

Returns a donation message to print in module pages.

Return value

string The donation message.

6 calls to Donation::getDonationText()
AdminSettingsForm::buildForm in src/Form/AdminSettingsForm.php
Form constructor.
CandidateNodesForm::buildForm in src/Form/CandidateNodesForm.php
Form constructor.
CandidateRevisionsContentTypeForm::buildForm in src/Form/CandidateRevisionsContentTypeForm.php
Form constructor.
CandidateRevisionsNodeForm::buildForm in src/Form/CandidateRevisionsNodeForm.php
Form constructor.
NodeRevisionGenerateForm::buildForm in modules/node_revision_generate/src/Form/NodeRevisionGenerateForm.php
Form constructor.

... See full list

File

src/Utility/Donation.php, line 18

Class

Donation
Provides donation messages.

Namespace

Drupal\node_revision_delete\Utility

Code

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>';
}