Skip to content
Snippets Groups Projects
Select Git revision
  • e4750a75ade38bdf8a771292f7b132d7c48d38a4
  • 11.x default protected
  • 11.2.x protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
41 results

entity_cache_test_dependency.module

Blame
  • Alex Pott's avatar
    Issue #1981858 by Berdir, tim.plunkett, longwave, Les Lim: Rename...
    Alex Pott authored
    Issue #1981858 by Berdir, tim.plunkett, longwave, Les Lim: Rename hook_entity_info/alter() to hook_entity_type_build/alter().
    c210e868
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    entity_cache_test_dependency.module 391 B
    <?php
    
    /**
     * @file
     * Helper module for entity cache tests.
     */
    
    /**
     * Implements hook_entity_type_alter().
     */
    function entity_cache_test_dependency_entity_type_alter(array &$entity_types) {
      /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */
      $entity_types['entity_cache_test']->set('label', \Drupal::state()->get('entity_cache_test.label') ?: 'Entity Cache Test');
    }