You are here

public function EntityTypeInfo::entityTypeAlter in Webform Analysis 8

Same name in this branch
  1. 8 src/EntityTypeInfo.php \Drupal\webform_analysis\EntityTypeInfo::entityTypeAlter()
  2. 8 modules/webform_node_analysis/src/EntityTypeInfo.php \Drupal\webform_node_analysis\EntityTypeInfo::entityTypeAlter()

Adds devel links to appropriate entity types.

This is an alter hook bridge.

Parameters

\Drupal\Core\Entity\EntityTypeInterface[] $entity_types: The master entity type list to alter.

See also

hook_entity_type_alter()

File

src/EntityTypeInfo.php, line 57

Class

EntityTypeInfo
Manipulates entity type information.

Namespace

Drupal\webform_analysis

Code

public function entityTypeAlter(array &$entity_types) {
  $entity_types['webform']
    ->setFormClass('analysis', 'Drupal\\webform_analysis\\Form\\WebformAnalysisForm');
  $entity_types['webform']
    ->setLinkTemplate('results_analysis', '/admin/structure/webform/manage/{webform}/results/analysis');
}