clearDisplayModeInfo example

/** * {@inheritdoc} */
  public function clearCachedFieldDefinitions() {
    $this->baseFieldDefinitions = [];
    $this->fieldDefinitions = [];
    $this->fieldStorageDefinitions = [];
    $this->activeFieldStorageDefinitions = [];
    $this->fieldMap = [];
    $this->fieldMapByFieldType = [];
    $this->entityDisplayRepository->clearDisplayModeInfo();
    $this->extraFields = NULL;
    Cache::invalidateTags(['entity_field_info']);
    // The typed data manager statically caches prototype objects with injected     // definitions, clear those as well.     $this->typedDataManager->clearCachedDefinitions();
  }

  /** * {@inheritdoc} */
  public function useCaches($use_caches = FALSE) {
    
Home | Imprint | This part of the site doesn't use cookies.