Skip to content
Snippets Groups Projects
Select Git revision
  • 059807a65a77d88ffe77496b27156b2865a12d9b
  • 4.x default
  • 3.x
  • 2.x
  • 8.x-1.x
  • 7.x-1.x
  • 4.1.0
  • 4.0.12
  • 4.0.11
  • 4.0.10
  • 4.0.9
  • 4.0.8
  • 4.0.7
  • 4.0.6
  • previous/3228271-broken-link-check/2021-08-20
  • 4.0.5
  • 4.0.4
  • 4.0.3
  • 4.0.2
  • 4.0.1
  • 4.0.0-alpha3
  • 4.0.0-alpha2
  • 4.0.0-alpha1
  • 3.0.2
  • 3.0.1
  • 3.0.0
26 results

EntityWrapperServiceInterface.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    EntityWrapperServiceInterface.php 461 B
    <?php
    
    /**
     * @file
     * Contains \Drupal\typed_entity\Entity\EntityWrapperServiceInterface.
     */
    
    namespace Drupal\typed_entity\Entity;
    
    interface EntityWrapperServiceInterface {
    
      /**
       * Wraps an entity based on its type.
       *
       * @param string $entity_type
       *   The entity type.
       * @param mixed $entity
       *   The loaded entity or entity ID.
       *
       * @return \EntityDrupalWrapperInterface
       */
      public static function wrap($entity_type, $entity);
    
    }