FieldTestEntityHooks.php
Namespace
Drupal\field_test\HookFile
- 
              core/modules/ field/ tests/ modules/ field_test/ src/ Hook/ FieldTestEntityHooks.php 
View source
<?php
declare (strict_types=1);
namespace Drupal\field_test\Hook;
use Drupal\Core\Hook\Attribute\Hook;
use Drupal\field_test\FieldTestHelper;
/**
 * Hook implementations for field_test.
 */
class FieldTestEntityHooks {
  
  /**
   * Implements hook_entity_type_alter().
   */
  public function entityTypeAlter(array &$entity_types) : void {
    /** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
    foreach (FieldTestHelper::entityInfoTranslatable() as $entity_type => $translatable) {
      $entity_types[$entity_type]->set('translatable', $translatable);
    }
  }
}Classes
| Title | Deprecated | Summary | 
|---|---|---|
| FieldTestEntityHooks | Hook implementations for field_test. | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
