original_string: protected function _addEntityContent($request, $data)
      {
          if ($data['entity'] instanceof EntityInterface) {
              return new EntityContext($request, $data);
          }
  
          if (is_array($data['entity']) && empty($data['entity']['schema'])) {
              return new EntityContext($request, $data);
          }
      }
code: protected function _addEntityContent($request, $data)
      {
          if ($data['entity'] instanceof EntityInterface) {
              return new EntityContext($request, $data);
          }
  
          if (is_array($data['entity']) && empty($data['entity']['schema'])) {
              return new EntityContext($request, $data);
          }
      }
code_tokens: protected function _addEntityContent ( $ request , $ data ) { if ( $ data [ 'entity' ] instanceof EntityInterface ) { return new EntityContext ( $ request , $ data ) ; } if ( is_array ( $ data [ 'entity' ] ) && empty ( $ data [ 'entity' ] [ 'schema' ] ) ) { return new EntityContext ( $ request , $ data ) ; } }
docstring: Add the entity suite of context providers provided.
  
  @param   $request
  @param   $data
  @return  EntityContext
docstring_tokens: Add the entity suite of context providers provided .