You are here

TestLocalAction4.php in Zircon Profile 8

File

core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction4.php
View source
<?php

/**
 * @file
 * Contains \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction4.
 */
namespace Drupal\menu_test\Plugin\Menu\LocalAction;

use Drupal\Core\Menu\LocalActionDefault;
use Drupal\Core\StringTranslation\StringTranslationTrait;

/**
 * Defines a local action plugin with a dynamic title.
 */
class TestLocalAction4 extends LocalActionDefault {
  use StringTranslationTrait;

  /**
   * {@inheritdoc}
   */
  public function getTitle() {
    return $this
      ->t('My @arg action', array(
      '@arg' => 'dynamic-title',
    ));
  }

}

Classes

Namesort descending Description
TestLocalAction4 Defines a local action plugin with a dynamic title.