Issue #2004408 followup by tim.plunkett: Random failure: Allow modules to alter the result of EntityListController::getOperations.

8.0.x
Alex Pott 2013-06-13 09:00:19 +01:00
parent e952a2115d
commit 0a01a892d2
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class EntityOperationsTest extends WebTestBase {
foreach ($roles as $role) {
$uri = $role->uri();
$this->assertLinkByHref($uri['path'] . '/test_operation');
$this->assertLink('Test Operation: ' . $role->label());
$this->assertLink(format_string('Test Operation: @label', array('@label' => $role->label())));
}
}

View File

@ -425,7 +425,7 @@ function entity_test_entity_predelete(EntityInterface $entity) {
function entity_test_entity_operation_alter(array &$operations, EntityInterface $entity) {
$uri = $entity->uri();
$operations['test_operation'] = array(
'title' => 'Test Operation: ' . $entity->label(),
'title' => format_string('Test Operation: @label', array('@label' => $entity->label())),
'href' => $uri['path'] . '/test_operation',
'weight' => 50,
);