You are here

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

... See full list

File

src/Utility/Donation.php, line 10

Namespace

Drupal\node_revision_delete\Utility
View 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

Namesort descending Modifiers Type Description Overrides
Donation::getDonationText public static function Returns a donation message to print in module pages.