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);
        }
    }
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);
        }
    }
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 ) ; } }
Add the entity suite of context providers provided.

@param   $request
@param   $data
@return  EntityContext
Add the entity suite of context providers provided .