DevelEntityTestLocalTasks.php in Devel 8.2
File
tests/modules/devel_entity_test/src/Plugin/Derivative/DevelEntityTestLocalTasks.php
View source
<?php
namespace Drupal\devel_entity_test\Plugin\Derivative;
use Drupal\Component\Plugin\Derivative\DeriverBase;
class DevelEntityTestLocalTasks extends DeriverBase {
public function getDerivativeDefinitions($base_plugin_definition) {
$this->derivatives = [];
$this->derivatives['devel_entity_test_canonical.canonical'] = [];
$this->derivatives['devel_entity_test_canonical.canonical']['base_route'] = "entity.devel_entity_test_canonical.canonical";
$this->derivatives['devel_entity_test_canonical.canonical']['route_name'] = "entity.devel_entity_test_canonical.canonical";
$this->derivatives['devel_entity_test_canonical.canonical']['title'] = 'View';
$this->derivatives['devel_entity_test_edit.edit'] = [];
$this->derivatives['devel_entity_test_edit.edit']['base_route'] = "entity.devel_entity_test_edit.edit_form";
$this->derivatives['devel_entity_test_edit.edit']['route_name'] = "entity.devel_entity_test_edit.edit_form";
$this->derivatives['devel_entity_test_edit.edit']['title'] = 'Edit';
return parent::getDerivativeDefinitions($base_plugin_definition);
}
}