You are here

JohnTest.php in Plug 7

File

modules/plug_example/src/Plugin/name/JohnTest.php
View source
<?php

/**
 * @file
 * Contains Drupal\plug_example\Plugin\name\JohnTest
 */
namespace Drupal\plug_example\Plugin\name;


/**
 * Class John
 * @package Drupal\plug_example\Plugin\name
 *
 * @Name(
 *   id = "john_test",
 *   company = FALSE
 * )
 */
class JohnTest extends John {

  /**
   * Overrides NameBase::t().
   *
   * Overrides the translation method to avoid bootstrap.
   */
  protected static function t($string, array $args = array(), array $options = array()) {
    return $string;
  }

}

Classes

Namesort descending Description
JohnTest Class John @package Drupal\plug_example\Plugin\name