Issue #2004408 followup by tim.plunkett: Random failure: Allow modules to alter the result of EntityListController::getOperations.
parent
e952a2115d
commit
0a01a892d2
|
@ -51,7 +51,7 @@ class EntityOperationsTest extends WebTestBase {
|
||||||
foreach ($roles as $role) {
|
foreach ($roles as $role) {
|
||||||
$uri = $role->uri();
|
$uri = $role->uri();
|
||||||
$this->assertLinkByHref($uri['path'] . '/test_operation');
|
$this->assertLinkByHref($uri['path'] . '/test_operation');
|
||||||
$this->assertLink('Test Operation: ' . $role->label());
|
$this->assertLink(format_string('Test Operation: @label', array('@label' => $role->label())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -425,7 +425,7 @@ function entity_test_entity_predelete(EntityInterface $entity) {
|
||||||
function entity_test_entity_operation_alter(array &$operations, EntityInterface $entity) {
|
function entity_test_entity_operation_alter(array &$operations, EntityInterface $entity) {
|
||||||
$uri = $entity->uri();
|
$uri = $entity->uri();
|
||||||
$operations['test_operation'] = array(
|
$operations['test_operation'] = array(
|
||||||
'title' => 'Test Operation: ' . $entity->label(),
|
'title' => format_string('Test Operation: @label', array('@label' => $entity->label())),
|
||||||
'href' => $uri['path'] . '/test_operation',
|
'href' => $uri['path'] . '/test_operation',
|
||||||
'weight' => 50,
|
'weight' => 50,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue