class FieldTestEntityHooks
Hook implementations for field_test.
Hierarchy
- class \Drupal\field_test\Hook\FieldTestEntityHooks
Expanded class hierarchy of FieldTestEntityHooks
File
-
core/
modules/ field/ tests/ modules/ field_test/ src/ Hook/ FieldTestEntityHooks.php, line 12
Namespace
Drupal\field_test\HookView source
class FieldTestEntityHooks {
/**
* Implements hook_entity_type_alter().
*/
public function entityTypeAlter(array &$entity_types) : void {
/** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
foreach (field_test_entity_info_translatable() as $entity_type => $translatable) {
$entity_types[$entity_type]->set('translatable', $translatable);
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
FieldTestEntityHooks::entityTypeAlter | public | function | Implements hook_entity_type_alter(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.