Generic.php in Form mode manager 8
File
src/Plugin/EntityRoutingMap/Generic.php
View source
<?php
namespace Drupal\form_mode_manager\Plugin\EntityRoutingMap;
use Drupal\form_mode_manager\EntityRoutingMapBase;
class Generic extends EntityRoutingMapBase {
public function setOperations() {
$operations = [
'add_form' => "entity.{$this->targetEntityType}.add_form",
'edit_form' => "entity.{$this->targetEntityType}.edit_form",
'add_page' => "{$this->targetEntityType}.add_page",
];
$this->pluginDefinition['operations'] += $operations;
}
public function defaultConfiguration() {
return [
'entityTypeId' => '',
] + parent::defaultConfiguration();
}
}
Classes
Name |
Description |
Generic |
Class Generic routing entity mapper. |