class DevelEntityTestLocalTasks in Devel 8
Same name and namespace in other branches
- 8.3 tests/modules/devel_entity_test/src/Plugin/Derivative/DevelEntityTestLocalTasks.php \Drupal\devel_entity_test\Plugin\Derivative\DevelEntityTestLocalTasks
- 8.2 tests/modules/devel_entity_test/src/Plugin/Derivative/DevelEntityTestLocalTasks.php \Drupal\devel_entity_test\Plugin\Derivative\DevelEntityTestLocalTasks
- 4.x tests/modules/devel_entity_test/src/Plugin/Derivative/DevelEntityTestLocalTasks.php \Drupal\devel_entity_test\Plugin\Derivative\DevelEntityTestLocalTasks
Defines the local tasks for all the entity_test entities.
Hierarchy
- class \Drupal\Component\Plugin\Derivative\DeriverBase implements DeriverInterface
- class \Drupal\devel_entity_test\Plugin\Derivative\DevelEntityTestLocalTasks
Expanded class hierarchy of DevelEntityTestLocalTasks
1 string reference to 'DevelEntityTestLocalTasks'
- devel_entity_test.links.task.yml in tests/
modules/ devel_entity_test/ devel_entity_test.links.task.yml - tests/modules/devel_entity_test/devel_entity_test.links.task.yml
File
- tests/
modules/ devel_entity_test/ src/ Plugin/ Derivative/ DevelEntityTestLocalTasks.php, line 10
Namespace
Drupal\devel_entity_test\Plugin\DerivativeView source
class DevelEntityTestLocalTasks extends DeriverBase {
/**
* {@inheritdoc}
*/
public function getDerivativeDefinitions($base_plugin_definition) {
$this->derivatives = array();
$this->derivatives['devel_entity_test_canonical.canonical'] = array();
$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'] = array();
$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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeriverBase:: |
protected | property | List of derivative definitions. | 1 |
DeriverBase:: |
public | function |
Gets the definition of a derivative plugin. Overrides DeriverInterface:: |
|
DevelEntityTestLocalTasks:: |
public | function |
Gets the definition of all derivatives of a base plugin. Overrides DeriverBase:: |