Drupal 8  8.0.2
FileEntityNormalizer Class Reference
Inheritance diagram for FileEntityNormalizer:

Public Member Functions

 __construct (EntityManagerInterface $entity_manager, ClientInterface $http_client, LinkManagerInterface $link_manager, ModuleHandlerInterface $module_handler)
 
 normalize ($entity, $format=NULL, array $context=array())
 
 denormalize ($data, $class, $format=NULL, array $context=array())
 
- Public Member Functions inherited from ContentEntityNormalizer
 __construct (LinkManagerInterface $link_manager, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler)
 
 denormalize ($data, $class, $format=NULL, array $context=array())
 
- Public Member Functions inherited from NormalizerBase
 supportsNormalization ($data, $format=NULL)
 
 supportsDenormalization ($data, $type, $format=NULL)
 
- Public Member Functions inherited from NormalizerBase
 supportsNormalization ($data, $format=NULL)
 
 supportsDenormalization ($data, $type, $format=NULL)
 

Protected Attributes

 $supportedInterfaceOrClass = 'Drupal\file\FileInterface'
 
 $httpClient
 
- Protected Attributes inherited from ContentEntityNormalizer
 $supportedInterfaceOrClass = 'Drupal\Core\Entity\ContentEntityInterface'
 
 $linkManager
 
 $entityManager
 
 $moduleHandler
 
- Protected Attributes inherited from NormalizerBase
 $formats = array('hal_json')
 
- Protected Attributes inherited from NormalizerBase
 $supportedInterfaceOrClass
 

Additional Inherited Members

- Protected Member Functions inherited from ContentEntityNormalizer
 getEntityUri (EntityInterface $entity)
 
 getTypedDataIds ($types, $context=array())
 
- Protected Member Functions inherited from NormalizerBase
 checkFormat ($format=NULL)
 

Detailed Description

Converts the Drupal entity object structure to a HAL array structure.

Constructor & Destructor Documentation

__construct ( EntityManagerInterface  $entity_manager,
ClientInterface  $http_client,
LinkManagerInterface  $link_manager,
ModuleHandlerInterface  $module_handler 
)

Constructs a FileEntityNormalizer object.

Parameters
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager.
\GuzzleHttp\ClientInterface$http_clientThe HTTP Client.
\Drupal\rest\LinkManager\LinkManagerInterface$link_managerThe hypermedia link manager.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler.

References Drupal\httpClient().

Here is the call graph for this function:

Member Function Documentation

denormalize (   $data,
  $class,
  $format = NULL,
array  $context = array() 
)

{}

References drupal_basename(), Drupal\entityManager(), file_unmanaged_save_data(), and Drupal\httpClient().

Here is the call graph for this function:

normalize (   $entity,
  $format = NULL,
array  $context = array() 
)

{}

References ContentEntityNormalizer\getEntityUri().

Here is the call graph for this function:


The documentation for this class was generated from the following file: